Skip to content

Commit e11bd13

Browse files
authored
Update InputFilter.php (#43377)
1 parent 5768496 commit e11bd13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Filter/InputFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function ($m) {
454454
$source = preg_replace_callback(
455455
'/&#x([a-f0-9]+);/mi',
456456
function ($m) {
457-
return mb_convert_encoding(\chr('0x' . $m[1]), 'UTF-8', 'ISO-8859-1');
457+
return mb_convert_encoding(\chr(\hexdec($m[1])), 'UTF-8', 'ISO-8859-1');
458458
},
459459
$source
460460
);

0 commit comments

Comments
 (0)