dedecms 管理员中文帐号不能登录处理办法
打开include/userlogin.class.php教程文件,搜索 checkuser如下
function checkuser($username,$userpwd)
{
global $dsql;
//只允许用户名和密码用0-9,a-z,a-z,'@','_','.','-'这些字符
//$this->username = ereg_replace("[^0-9a-za-z_@!.-]",'',$username);
$this->username = $username;
把$this->username = ereg_replace("[^0-9a-za-z_@!.-]",'',$username);替换成 $this->username = $username;就可以了。
时间: 2024-10-17 23:26:33