Fix double escaping for HTML entities in error messages

This commit is contained in:
iliajie
2023-05-26 21:59:11 +03:00
parent 8df605cb15
commit d62f474d12

View File

@@ -261,7 +261,8 @@ $tmp =~ s/\"/"/g;
$tmp =~ s/\'/'/g;
$tmp =~ s/=/=/g;
# Never double escape following common entities
$tmp =~ s/ / /g;
$tmp =~ s/&#(\d+);/&#$1;/g;
$tmp =~ s/&#x(\d+);/&#x$1;/g;
$tmp =~ s/ / /g;
$tmp =~ s/</</g;
$tmp =~ s/>/>/g;