mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix some security issues + change username min length to 3
This commit is contained in:
@@ -3929,7 +3929,7 @@ function validusername($username)
|
||||
if (strpos($allowedchars, $username[$i]) === false)
|
||||
return false;
|
||||
|
||||
if ($length < 4 || $length > 20) {
|
||||
if ($length < 3 || $length > 20) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user