mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-06 20:00:48 +00:00
Update FixUsernames.php
This commit is contained in:
parent
599a36f4aa
commit
a13545e328
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue