aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-05-30 21:11:34 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-05-30 21:11:34 +0200
commit8eb1640a265628e47e437d0ff75ceea5b83c4a38 (patch)
tree0b6f2acf895a58e127808d594ca5675bd5b21da4 /src/main/java/eu/siacs
parentbe0fc59314cc9dd2fb34059333b9d6a6269653b3 (diff)
remove unicode control chars before sending
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/XmlHelper.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/XmlHelper.java b/src/main/java/eu/siacs/conversations/utils/XmlHelper.java
index 4dee07cf..198ce28b 100644
--- a/src/main/java/eu/siacs/conversations/utils/XmlHelper.java
+++ b/src/main/java/eu/siacs/conversations/utils/XmlHelper.java
@@ -7,6 +7,7 @@ public class XmlHelper {
content = content.replace(">", "&gt;");
content = content.replace("\"", "&quot;");
content = content.replace("'", "&apos;");
+ content = content.replaceAll("\\p{Cc}", "");
return content;
}
}