aska_sky 发表于 2012-1-10 08:38:00

登录提示用户名格式错误!

我从其他系统导入用户数据,如果用户名包含大写字母,登录时就会提示“用户名格式错误”!

分析后得知是在 \include\global.func.php 中一个函数 check_name() ,它的正则有问题:

return preg_match("/^{1}{0,}{1}$/", $username);
改成
return preg_match("/^{1}{0,}{1}$/", $username);

就可以了,希望下次升级的时候可以修正!
页: [1]
查看完整版本: 登录提示用户名格式错误!