Merge pull request #676 from pquerner/#675
use correct validate-ip function in \Froxlor\Validate\Validate::validateUrl, fixes #675
This commit is contained in:
@@ -174,7 +174,7 @@ class Data
|
|||||||
$ip = substr($ip, 0, strpos($ip, ':'));
|
$ip = substr($ip, 0, strpos($ip, ':'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (validate_ip($ip, true) !== false) {
|
if (\Froxlor\Validate\Validate::validate_ip2($ip, true) !== false) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user