mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 06:52:40 +00:00
#3128: do not put forbidden char in xml
This commit is contained in:
1 parent
a961d70461
commit
2d03465f34
1 file changed
+4
@@ -437,6 +437,10 @@ static int cssEscapingCount;
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
/* U+FFFE and U+FFFF are not allowed in XML, not even as a
|
||||||
|
character reference: drop them */
|
||||||
|
if (chars[i] == 0xFFFE || chars[i] == 0xFFFF)
|
||||||
|
break;
|
||||||
/* escape big chars */
|
/* escape big chars */
|
||||||
if (chars[i] > 127)
|
if (chars[i] > 127)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user