diff --git a/src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php b/src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php index e1484940c86..0778952be9c 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php +++ b/src/opnsense/mvc/app/library/OPNsense/Firewall/Util.php @@ -71,7 +71,7 @@ public static function isSubnet($network) { $tmp = explode('/', $network); if (count($tmp) == 2) { - if (self::isIpAddress($tmp[0]) && abs($tmp[1]) == $tmp[1] && ctype_digit($tmp[1])) { + if (self::isIpAddress($tmp[0]) && ctype_digit($tmp[1]) && abs($tmp[1]) == $tmp[1]) { if (strpos($tmp[0], ':') !== false && $tmp[1] <= 128) { // subnet v6 return true;