mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-24 14:04:07 +08:00
fixed bug of regular expression
This commit is contained in:
parent
f1dd0e7d4a
commit
901e318124
@ -3,7 +3,7 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-01-16 23:01:33
|
||||
* @Last Modified by: prpr
|
||||
* @Last Modified time: 2016-02-07 15:16:44
|
||||
* @Last Modified time: 2016-02-08 22:02:53
|
||||
*/
|
||||
|
||||
class User
|
||||
@ -38,7 +38,7 @@ class User
|
||||
}
|
||||
|
||||
public static function checkValidUname($uname) {
|
||||
return preg_match("([A-Za-z0-9_\-]+)", $uname);
|
||||
return preg_match("/^([A-Za-z0-9_]+)$/", $uname);
|
||||
}
|
||||
|
||||
public static function checkValidPwd($passwd) {
|
||||
|
Loading…
Reference in New Issue
Block a user