Update FixUsernames.php

pull/5622/head
Shlee 4 months ago committed by GitHub
parent 599a36f4aa
commit a13545e328
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save