mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 13:21:51 +00:00
Don't use @ warning suppression.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
This commit is contained in:
parent
5a8e48d672
commit
a93250f251
@ -118,7 +118,7 @@ class HTMLPurifier_EntityParser
|
|||||||
$entity = $matches[0];
|
$entity = $matches[0];
|
||||||
$hex_part = @$matches[1];
|
$hex_part = @$matches[1];
|
||||||
$dec_part = @$matches[2];
|
$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 !== "") {
|
if ($hex_part !== NULL && $hex_part !== "") {
|
||||||
return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
|
return HTMLPurifier_Encoder::unichr(hexdec($hex_part));
|
||||||
} elseif ($dec_part !== NULL && $dec_part !== "") {
|
} elseif ($dec_part !== NULL && $dec_part !== "") {
|
||||||
|
Loading…
Reference in New Issue
Block a user