diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-19 00:07:15 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-19 00:07:15 +0200 |
commit | 85c82d9b3bd2cb84522f5b619acbde9136822de7 (patch) | |
tree | dbb864d7025bbe107244d716fa86ce505187ca82 /src/main/java/eu | |
parent | 829720409dbc40691f5b058740271129073b8a9b (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.java | 2 |
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(">", ">"); content = content.replace("\"", """); content = content.replace("'", "'"); - content = content.replaceAll("\\p{Cc}&&[^\n\r\t]", ""); + content = content.replaceAll("[\\p{Cntrl}&&[^\n\t\r]]", ""); return content; } } |