aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/eu/siacs')
-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(">", ">");
content = content.replace("\"", """);
content = content.replace("'", "'");
- content = content.replaceAll("\\p{Cc}&&[^\n\r\t]", "");
+ content = content.replaceAll("[\\p{Cntrl}&&[^\n\t\r]]", "");
return content;
}
}