Compare commits

...

2 Commits

Author SHA1 Message Date
Steve Allison 49812d9746 Fix missing () 2013-02-22 19:05:54 +00:00
Steve Allison 9af9edf09d No need for DB lookup during login unless 403 2013-02-22 19:02:27 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -290,9 +290,9 @@ class defense extends rcube_plugin {
die();
}
if ($this->isBanned($this->ipaddr)) {
if ($this->ban_httpstatus) { $this->sendForbiddenHeader(); }
if (($this->ban_httpstatus) && ($this->isBanned($this->ipaddr))) {
$this->debug("IP already banned");
$this->sendForbiddenHeader();
}
$this->debug("Sending login form.");