From a13545e328f981bc6b6bd25272e50c9ecec6e8f6 Mon Sep 17 00:00:00 2001 From: Shlee Date: Mon, 27 Jan 2025 21:13:31 +1030 Subject: [PATCH] Update FixUsernames.php --- app/Console/Commands/FixUsernames.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/FixUsernames.php b/app/Console/Commands/FixUsernames.php index 96dcd9cc6..677ae2c08 100644 --- a/app/Console/Commands/FixUsernames.php +++ b/app/Console/Commands/FixUsernames.php @@ -90,7 +90,7 @@ class FixUsernames extends Command break; case $opts[1]: - $new = filter_var($old, FILTER_SANITIZE_STRING|FILTER_FLAG_STRIP_LOW); + $new = htmlspecialchars($old, ENT_QUOTES, 'UTF-8'); if(strlen($new) < 6) { $new = $new . '_' . str_random(4); }