forked from science-ation/science-ation
Fix user match
This commit is contained in:
parent
3c4e0605e6
commit
027966a76f
@ -858,7 +858,7 @@ function user_valid_user($user)
|
||||
* Find any character that doesn't match the valid username characters
|
||||
* (^ inverts the matching remember
|
||||
*/
|
||||
$x = preg_match('/[^a-zA-Z0-9@.-_]/', $user);
|
||||
$x = preg_match('[^a-zA-Z0-9@.-_]', $user);
|
||||
|
||||
/* If x==1, a match was found, and the input is bad */
|
||||
return ($x == 1) ? false : true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user