aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-01 09:04:08 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-01 09:04:08 +0200
commitadd8e2cb74f555dc732a9c7d48ae5039d184884e (patch)
tree52c0297835980c0339069cbf115e9b72e23388d7 /src/main/java
parent15316e6a7fc3cd9601f1b11bbf1a358c02813243 (diff)
don't replace \n\t\r
Diffstat (limited to 'src/main/java')
-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 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(">", "&gt;");
content = content.replace("\"", "&quot;");
content = content.replace("'", "&apos;");
- content = content.replaceAll("\\p{Cc}", "");
+ content = content.replaceAll("\\p{Cc}&&[^\n\r\t]", "");
return content;
}
}