Closed sanchezzzhak closed 9 years ago
replace
/** * Validate IP address and network. * @param string $ip IP address in dotted quads format. * @param int $network_size Network. * @throws Exception ip or network size not valid */ private function validateInputs( $ip, $network_size ) { if (!filter_var( $ip, FILTER_VALIDATE_IP )) { throw new Exception("IP address $ip not valid."); } if ( ( $network_size < 1 ) || ( $network_size > 32 ) ) { throw new Exception("Network size $network_size not valid."); } }
Thanks. Updated.
replace