Commit 4e991e6f authored by Ad Schellevis's avatar Ad Schellevis

(legacy) deprecate is_iprange in util.inc

parent 7b1e340a
......@@ -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)) {
......
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