Update FixUsernames.php

This commit is contained in:
Shlee 2025-01-27 21:13:31 +10:30 committed by GitHub
parent 599a36f4aa
commit a13545e328
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}