Fix function reference
parent
1236cc5c3b
commit
0f0fe693e4
|
@ -99,12 +99,12 @@ class defense extends rcube_plugin {
|
||||||
*/
|
*/
|
||||||
public function hookLoginForm($content) {
|
public function hookLoginForm($content) {
|
||||||
// If IP is listed in whitelist, return unmodified $content
|
// If IP is listed in whitelist, return unmodified $content
|
||||||
if (isIPinArray($this->ipaddr, $this->whitelist)) {
|
if ($this->isIPinArray($this->ipaddr, $this->whitelist)) {
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If IP is listed in blacklist, deny access
|
// If IP is listed in blacklist, deny access
|
||||||
if (isIPinArray($this->ipaddr, $this->blacklist)) {
|
if ($this->isIPinArray($this->ipaddr, $this->blacklist)) {
|
||||||
header('HTTP/1.1 403 Forbidden');
|
header('HTTP/1.1 403 Forbidden');
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue