Fix user match

This commit is contained in:
patrick 2025-02-12 00:56:51 +00:00
parent 3c4e0605e6
commit 027966a76f

View File

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