From 60eaade6b08bb6e159562deefbb559e1ce5ec6eb Mon Sep 17 00:00:00 2001 From: mcloo Date: Tue, 8 Aug 2017 11:36:24 +0200 Subject: [PATCH] Fix plaintext export XML name escaping Fixes #6830 Closes #6861 --- src/org/thoughtcrime/securesms/database/XmlBackup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/database/XmlBackup.java b/src/org/thoughtcrime/securesms/database/XmlBackup.java index 6004438fa4..17f83c8278 100644 --- a/src/org/thoughtcrime/securesms/database/XmlBackup.java +++ b/src/org/thoughtcrime/securesms/database/XmlBackup.java @@ -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());