diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-19 00:07:15 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-20 21:03:28 +0200 |
commit | 5f5cdd8696098a5a1d0fd7bc95dbb6995152e0ac (patch) | |
tree | d40932be6569b74585a753c4995561591ba014ab /src/main/java/eu | |
parent | ebc585457b3b78d01ac769648e19e33bb4b308c8 (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 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(">", ">"); content = content.replace("\"", """); content = content.replace("'", "'"); - content = content.replaceAll("\\p{Cc}&&[^\n\r\t]", ""); + content = content.replaceAll("[\\p{Cntrl}&&[^\n\t\r]]", ""); return content; } } |