(legacy) deprecate is_iprange in util.inc

This commit is contained in:
Ad Schellevis 2015-08-17 08:12:03 +00:00
parent 7b1e340a36
commit 4e991e6f41

View File

@ -306,14 +306,6 @@ function ip_range_to_subnet_array($startip, $endip) {
return $rangesubnets;
}
function is_iprange($range) {
if (substr_count($range, '-') != 1) {
return false;
}
list($ip1, $ip2) = explode ('-', $range);
return (is_ipaddr($ip1) && is_ipaddr($ip2));
}
/* returns true if $ipaddr is a valid dotted IPv4 address or a IPv6 */
function is_ipaddr($ipaddr) {
if(is_ipaddrv4($ipaddr)) {