Revision 593e9fe3
Added by Phil Davis over 8 years ago
src/etc/inc/pfsense-utils.inc | ||
---|---|---|
2153 | 2153 |
$tmp = $tmp_str; |
2154 | 2154 |
} |
2155 | 2155 |
$valid = (($type == "url" || $type == "urltable") && (is_ipaddr($tmp) || is_subnet($tmp))) || |
2156 |
(($type == "url_ports" || $type == "urltable_ports") && is_portorrange($tmp));
|
|
2156 |
(($type == "url_ports" || $type == "urltable_ports") && is_port_or_range($tmp));
|
|
2157 | 2157 |
if ($valid) { |
2158 | 2158 |
$items[] = $tmp; |
2159 | 2159 |
if (count($items) == $max_items) { |
Also available in: Unified diff
Add underscores to is_port* function names