mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
missing port_range validation in firewall_aliases_edit.php
This commit is contained in:
parent
d0419d15ed
commit
f34a265c77
@ -114,7 +114,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$input_errors[] = sprintf(gettext("%s doesn't appear to be a valid hostname or ip address"), $detail_entry) ;
|
||||
}
|
||||
} elseif ($pconfig['type'] == 'port') {
|
||||
if (!is_port($detail_entry)) {
|
||||
if (!is_port($detail_entry) && !is_portrange($detail_entry)) {
|
||||
$input_errors[] = sprintf(gettext("%s doesn't appear to be a valid port number"), $detail_entry) ;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user