#3128: do not put forbidden char in xml

This commit is contained in:
Hivert Quentin committed 2026-11-11 19:52:00 +01:00
1 parent a961d70461
commit 2d03465f34
1 file changed
+4
+4
View File
@@ -437,6 +437,10 @@ static int cssEscapingCount;
break;
}
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 */
if (chars[i] > 127)
{