We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68b7c7 commit 1da0ba4Copy full SHA for 1da0ba4
src/Symfony/Component/HttpFoundation/IpUtils.php
@@ -39,7 +39,7 @@ public static function checkIp($requestIp, $ips)
39
$ips = array($ips);
40
}
41
42
- $method = false !== strpos($requestIp, ':') ? 'checkIp6' : 'checkIp4';
+ $method = substr_count($requestIp, ':') > 1 ? 'checkIp6' : 'checkIp4';
43
44
foreach ($ips as $ip) {
45
if (self::$method($requestIp, $ip)) {
0 commit comments