Skip to content

Commit

Permalink
Merge pull request ezyang#129 from rybakit/patch-1
Browse files Browse the repository at this point in the history
Fix a call to undefined function HTMLPurifier_Encoder()
  • Loading branch information
ezyang authored Mar 12, 2017
2 parents 5688656 + fd24de6 commit c7a2f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/HTMLPurifier/EntityParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ protected function entityCallback($matches)
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();
Expand Down

0 comments on commit c7a2f6f

Please sign in to comment.