Fix plaintext export XML name escaping

Fixes #6830
Closes #6861
This commit is contained in:
mcloo 2017-08-08 11:36:24 +02:00 committed by Moxie Marlinspike
parent 54396a3a9c
commit 60eaade6b0

View File

@ -191,7 +191,7 @@ public class XmlBackup {
stringBuilder.append(OPEN_TAG_SMS);
appendAttribute(stringBuilder, PROTOCOL, item.getProtocol());
appendAttribute(stringBuilder, ADDRESS, escapeXML(item.getAddress()));
appendAttribute(stringBuilder, CONTACT_NAME, item.getContactName());
appendAttribute(stringBuilder, CONTACT_NAME, escapeXML(item.getContactName()));
appendAttribute(stringBuilder, DATE, item.getDate());
appendAttribute(stringBuilder, READABLE_DATE, item.getReadableDate());
appendAttribute(stringBuilder, TYPE, item.getType());