diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-01 09:04:08 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-01 09:04:08 +0200 |
commit | add8e2cb74f555dc732a9c7d48ae5039d184884e (patch) | |
tree | 52c0297835980c0339069cbf115e9b72e23388d7 /src/main/java/eu | |
parent | 15316e6a7fc3cd9601f1b11bbf1a358c02813243 (diff) |
don't replace \n\t\r
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 198ce28b..8cd551a0 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}", ""); + content = content.replaceAll("\\p{Cc}&&[^\n\r\t]", ""); return content; } } |