Fix function reference
This commit is contained in:
		
							parent
							
								
									1236cc5c3b
								
							
						
					
					
						commit
						0f0fe693e4
					
				@ -99,12 +99,12 @@ class defense extends rcube_plugin {
 | 
			
		||||
    */
 | 
			
		||||
    public function hookLoginForm($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;
 | 
			
		||||
        }
 | 
			
		||||
        
 | 
			
		||||
        // 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');
 | 
			
		||||
            die();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user