mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Use \x instead of \u because \u doesn't work everywhere for some reason
This commit is contained in:
parent
3c64498592
commit
b70d73788b
@ -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")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user