Update InputFilter.php (#43377)

This commit is contained in:
AlterBrains 2024-05-08 19:26:55 +03:00 committed by GitHub
parent 5768496747
commit e11bd13a7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -454,7 +454,7 @@ class InputFilter extends BaseInputFilter
$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
);