From 85c82d9b3bd2cb84522f5b619acbde9136822de7 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sun, 19 Jun 2016 00:07:15 +0200 Subject: remove ascii control chars when creating xml --- src/main/java/eu/siacs/conversations/utils/XmlHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- cgit v1.2.3