Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0fbf51 commit 01be377Copy full SHA for 01be377
1 file changed
library/HTMLPurifier/EntityParser.php
@@ -116,8 +116,8 @@ public function substituteAttrEntities($string)
116
protected function entityCallback($matches)
117
{
118
$entity = $matches[0];
119
- $hex_part = @$matches[1];
120
- $dec_part = @$matches[2];
+ $hex_part = isset($matches[1]) ? $matches[1] : null;
+ $dec_part = isset($matches[2]) ? $matches[2] : null;
121
$named_part = empty($matches[3]) ? (empty($matches[4]) ? "" : $matches[4]) : $matches[3];
122
if ($hex_part !== NULL && $hex_part !== "") {
123
return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
0 commit comments