diff options
author | Renato Botelho <renato@netgate.com> | 2017-03-27 14:20:29 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-03-27 14:20:29 -0300 |
commit | 74d259a6e897a49bcf728843600587bd2ea035f2 (patch) | |
tree | 609770957666e7bebf0710f5e5f96e4d4ccac7d9 /src/etc/inc/pfsense-utils.inc | |
parent | 02c3646f36f84bfe1a65c54c38a05e100e8abd44 (diff) | |
parent | 7e50d1e7357e4b9dc8a4283971c8bfe0312c5d8b (diff) | |
download | pfsense-74d259a6e897a49bcf728843600587bd2ea035f2.zip pfsense-74d259a6e897a49bcf728843600587bd2ea035f2.tar.gz |
Merge pull request #3670 from phil-davis/handle-empty-port-alias
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r-- | src/etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index 3e9767e..83b2f5a 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -2153,7 +2153,7 @@ function parse_aliases_file($filename, $type = "url", $max_items = -1, $kflc = f $tmp = $tmp_str; } $valid = (($type == "url" || $type == "urltable") && (is_ipaddr($tmp) || is_subnet($tmp))) || - (($type == "url_ports" || $type == "urltable_ports") && (is_port($tmp) || is_portrange($tmp))); + (($type == "url_ports" || $type == "urltable_ports") && is_portorrange($tmp)); if ($valid) { $items[] = $tmp; if (count($items) == $max_items) { |