Use \x instead of \u because \u doesn't work everywhere for some reason

This commit is contained in:
ruan 2017-02-27 09:09:20 +02:00
parent 3c64498592
commit b70d73788b
No known key found for this signature in database
GPG Key ID: 062534EE618F498C

View File

@ -243,7 +243,7 @@ class Page {
function clean($text) {
if ($text === null) return null;
if (strstr($text, "\xa7") || strstr($text, "&")) {
$text = preg_replace("/(?i)(\u{00a7}|&)[0-9A-FK-OR]/u", "", $text);
$text = preg_replace("/(?i)(\x{00a7}|&)[0-9A-FK-OR]/u", "", $text);
}
$text = htmlspecialchars($text, ENT_QUOTES, "UTF-8");
if (strstr($text, "\n")) {