From 628d3a18552cc8480256ea4e2f7b7f8ae7cec084 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 16 Mar 2012 20:35:41 +0400 Subject: [PATCH] lib/xmltree/xmlinterface.cpp: ignore characters less than 0x20 when saving to xml --- lib/xmltree/xmlinterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/xmltree/xmlinterface.cpp b/lib/xmltree/xmlinterface.cpp index c2cd7493e..a1699d612 100644 --- a/lib/xmltree/xmlinterface.cpp +++ b/lib/xmltree/xmlinterface.cpp @@ -114,7 +114,8 @@ std::string convert_UTF8_To_UTF8_XML(const char* s) r += "'"; break; default: - r += *s; + if ((unsigned char)*s >= 32) + r += *s; } s++; }