Skip to content

Commit

Permalink
Update InputFilter.php (#43377)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlterBrains committed May 8, 2024
1 parent 5768496 commit e11bd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/src/Filter/InputFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function ($m) {
$source = preg_replace_callback(
'/&#x([a-f0-9]+);/mi',
function ($m) {
return mb_convert_encoding(\chr('0x' . $m[1]), 'UTF-8', 'ISO-8859-1');
return mb_convert_encoding(\chr(\hexdec($m[1])), 'UTF-8', 'ISO-8859-1');
},
$source
);
Expand Down

0 comments on commit e11bd13

Please sign in to comment.