#3128: do not put forbidden char in xml

This commit is contained in:
Hivert Quentin committed 2026-11-20 09:31:18 +01:00
1 parent efd356bde5
commit e7a05f76d7
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)
{