diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-05-30 21:11:34 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-05-30 21:11:34 +0200 |
commit | 8eb1640a265628e47e437d0ff75ceea5b83c4a38 (patch) | |
tree | 0b6f2acf895a58e127808d594ca5675bd5b21da4 /src/main/java/eu/siacs/conversations/utils | |
parent | be0fc59314cc9dd2fb34059333b9d6a6269653b3 (diff) |
remove unicode control chars before sending
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/XmlHelper.java | 1 |
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 4dee07cf7..198ce28b9 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(">", ">"); content = content.replace("\"", """); content = content.replace("'", "'"); + content = content.replaceAll("\\p{Cc}", ""); return content; } } |