打开include/userlogin.class.php教程文件,搜索 checkuser如下:
- function checkuser($username,$userpwd)
- {//开源软件:Vevb.com
- 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;就可以了.
新闻热点
疑难解答