Skip to content

Commit

Permalink
Fix ezyang#122: correct surrogate pair range
Browse files Browse the repository at this point in the history
  • Loading branch information
mpyw committed Mar 4, 2017
1 parent 8e4cacf commit f145f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/HTMLPurifier/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static function cleanUTF8($str, $force_php = false)
// 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;
Expand Down

0 comments on commit f145f64

Please sign in to comment.