0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-03 05:11:52 +00:00

Fix #122: correct surrogate pair range

This commit is contained in:
mpyw 2017-03-04 15:38:01 +09:00
parent 8e4cacf0a7
commit f145f64bf4
No known key found for this signature in database
GPG Key ID: 889C564F72AAD0CD

View File

@ -255,7 +255,7 @@ class HTMLPurifier_Encoder
// 7F-9F is not strictly prohibited by XML,
// but it is non-SGML, and thus we don't allow it
(0xA0 <= $mUcs4 && 0xD7FF >= $mUcs4) ||
(0x10000 <= $mUcs4 && 0x10FFFF >= $mUcs4)
(0xE000 <= $mUcs4 && 0x10FFFF >= $mUcs4)
)
) {
$out .= $char;