iDevil Posted February 8, 2010 Share Posted February 8, 2010 客户登陆后,无法更改个人信息栏的所有内容,包裹密码。更改内容后,点击提交就出现Hack 试图 (Customer -> dni = 0) Link to comment Share on other sites More sharing options...
21846657 Posted February 11, 2010 Share Posted February 11, 2010 这是一个已知的bug。下面是官方的修复:1. 备份后打开classes/Customer.php;2. 在第126和127行之间: $this->newsletter_date_add = date('Y-m-d H:i:s'); return parent::update(true); 3. 加入: if ($this->dni === 0) $this->dni = NULL; 4. 最后像这样: $this->newsletter_date_add = date('Y-m-d H:i:s'); if ($this->dni === 0) $this->dni = NULL; return parent::update(true); 5. 保存,测试。 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now