mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 00:41:52 +00:00
Merge pull request #129 from rybakit/patch-1
Fix a call to undefined function HTMLPurifier_Encoder()
This commit is contained in:
commit
c7a2f6f0df
@ -122,7 +122,7 @@ class HTMLPurifier_EntityParser
|
|||||||
if ($hex_part) {
|
if ($hex_part) {
|
||||||
return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
|
return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
|
||||||
} elseif ($dec_part) {
|
} elseif ($dec_part) {
|
||||||
return HTMLPurifier_Encoder((int) $dec_part);
|
return HTMLPurifier_Encoder::unichr((int) $dec_part);
|
||||||
} else {
|
} else {
|
||||||
if (!$this->_entity_lookup) {
|
if (!$this->_entity_lookup) {
|
||||||
$this->_entity_lookup = HTMLPurifier_EntityLookup::instance();
|
$this->_entity_lookup = HTMLPurifier_EntityLookup::instance();
|
||||||
|
Loading…
Reference in New Issue
Block a user