aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-19 00:07:15 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-19 00:07:15 +0200
commit85c82d9b3bd2cb84522f5b619acbde9136822de7 (patch)
treedbb864d7025bbe107244d716fa86ce505187ca82 /src/main/java/eu
parent829720409dbc40691f5b058740271129073b8a9b (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 8cd551a0..9e062f0d 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;
}
}