MDL-67372 libraries: Upgrade HTML Purifier to version 4.12.0

This commit is contained in:
Shamim Rezaie
2020-01-16 14:21:40 +11:00
parent 77d1c41502
commit 28bc46092e
22 changed files with 282 additions and 78 deletions
@@ -118,7 +118,7 @@ class HTMLPurifier_EntityParser
$entity = $matches[0];
$hex_part = @$matches[1];
$dec_part = @$matches[2];
$named_part = empty($matches[3]) ? @$matches[4] : $matches[3];
$named_part = empty($matches[3]) ? (empty($matches[4]) ? "" : $matches[4]) : $matches[3];
if ($hex_part !== NULL && $hex_part !== "") {
return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
} elseif ($dec_part !== NULL && $dec_part !== "") {