mirror of
https://github.com/opnsense/core.git
synced 2026-10-12 02:20:36 +00:00
Firewall: Aliases - deny invalid port ranges, closes https://github.com/opnsense/core/issues/10954
This commit is contained in:
@@ -375,7 +375,9 @@ class Util
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (($allow_range && count($tmp) <= 2) || count($tmp) == 1) {
|
||||
if (($allow_range && count($tmp) == 2)) {
|
||||
return $tmp[0] < $tmp[1];
|
||||
} elseif (count($tmp) == 1) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user