mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Be nicer when checking if alias is numeric
Because an ordinary port can be numeric here. Forum https://forum.pfsense.org/index.php?topic=89906.0
This commit is contained in:
parent
f54229df8c
commit
a97a77a2a5
@ -1533,11 +1533,11 @@ function alias_get_type($name) {
|
||||
function alias_expand($name) {
|
||||
global $aliastable;
|
||||
|
||||
// alias names cannot be strictly numeric. redmine #4289
|
||||
if (is_numericint($name))
|
||||
return null;
|
||||
|
||||
if (isset($aliastable[$name])) {
|
||||
// alias names cannot be strictly numeric. redmine #4289
|
||||
if (is_numericint($name)) {
|
||||
return null;
|
||||
}
|
||||
return "\${$name}";
|
||||
} else if (is_ipaddr($name) || is_subnet($name) || is_port($name) || is_portrange($name)) {
|
||||
return "{$name}";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user