0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-09 15:28:40 +00:00

Fix a call to undefined function HTMLPurifier_Encoder()

This commit is contained in:
Eugene Leonovich 2017-03-12 22:44:03 +01:00 committed by GitHub
parent 5688656174
commit fd24de69a3

View File

@ -122,7 +122,7 @@ class HTMLPurifier_EntityParser
if ($hex_part) {
return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
} elseif ($dec_part) {
return HTMLPurifier_Encoder((int) $dec_part);
return HTMLPurifier_Encoder::unichr((int) $dec_part);
} else {
if (!$this->_entity_lookup) {
$this->_entity_lookup = HTMLPurifier_EntityLookup::instance();