diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 899add9ec0..25576c7b40 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -301,8 +301,13 @@ function isInACL($ip) // example lab.artica.es without '*' $name = []; $name = gethostbyname($acl_ip); - if (preg_match('/'.$name.'/', $ip)) { - return true; + if (preg_match('/'.$name.'/', $ip, $matches)) { + // This is for false matches, like '' or $. + if (count($matches) == 1 && $matches[0] == '') { + continue; + } else { + return true; + } } } }