diff --git a/app/Model/Bruteforce.php b/app/Model/Bruteforce.php index 81b687f13..baef4b3a7 100644 --- a/app/Model/Bruteforce.php +++ b/app/Model/Bruteforce.php @@ -1,5 +1,7 @@ data['Bruteforce']['ip'] = $ip; -// $this->data['Bruteforce']['username'] = $username; $expire = Configure::read('SecureAuth.expire'); - + // sanitize fields + $ip = Sanitize::clean($ip); + $username = Sanitize::clean($username); $this->query("INSERT INTO `bruteforces` (`ip` , `username` , `expire` ) VALUES ('$ip', '$username', TIMESTAMPADD(SECOND,$expire, NOW()));"); }