aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-19 00:07:15 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-20 21:03:28 +0200
commit5f5cdd8696098a5a1d0fd7bc95dbb6995152e0ac (patch)
treed40932be6569b74585a753c4995561591ba014ab /src/main/java/eu
parentebc585457b3b78d01ac769648e19e33bb4b308c8 (diff)
remove ascii control chars when creating xml
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/XmlHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/XmlHelper.java b/src/main/java/eu/siacs/conversations/utils/XmlHelper.java
index 8cd551a0a..9e062f0da 100644
--- a/src/main/java/eu/siacs/conversations/utils/XmlHelper.java
+++ b/src/main/java/eu/siacs/conversations/utils/XmlHelper.java
@@ -7,7 +7,7 @@ public class XmlHelper {
content = content.replace(">", "&gt;");
content = content.replace("\"", "&quot;");
content = content.replace("'", "&apos;");
- content = content.replaceAll("\\p{Cc}&&[^\n\r\t]", "");
+ content = content.replaceAll("[\\p{Cntrl}&&[^\n\t\r]]", "");
return content;
}
}