Commit d4933b5d authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(filter/aliases) allow port alias nesting, closes https://github.com/opnsense/core/issues/1436

(cherry picked from commit 8d00e488)
parent dcb0f60d
...@@ -128,7 +128,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { ...@@ -128,7 +128,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$input_errors[] = sprintf(gettext("%s doesn't appear to be a valid hostname or ip address"), $detail_entry) ; $input_errors[] = sprintf(gettext("%s doesn't appear to be a valid hostname or ip address"), $detail_entry) ;
} }
} elseif ($pconfig['type'] == 'port') { } elseif ($pconfig['type'] == 'port') {
if (!is_port($detail_entry) && !is_portrange($detail_entry)) { if (!is_port($detail_entry) && !is_portrange($detail_entry) && !is_alias($detail_entry)) {
$input_errors[] = sprintf(gettext("%s doesn't appear to be a valid port number"), $detail_entry) ; $input_errors[] = sprintf(gettext("%s doesn't appear to be a valid port number"), $detail_entry) ;
} }
} elseif ($pconfig['type'] == 'geoip') { } elseif ($pconfig['type'] == 'geoip') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment