Explorar o código

[HttpFoundation] Fixed default netmask to be restricted to one IP

Jordi Boggiano %!s(int64=14) %!d(string=hai) anos
pai
achega
a832885960
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/HttpFoundation/RequestMatcher.php

+ 1 - 1
src/Symfony/Component/HttpFoundation/RequestMatcher.php

@@ -121,7 +121,7 @@ class RequestMatcher implements RequestMatcherInterface
             }
         } else {
             $address = $this->ip;
-            $netmask = 1;
+            $netmask = 32;
         }
 
         return 0 === substr_compare(sprintf('%032b', ip2long($ip)), sprintf('%032b', ip2long($address)), 0, $netmask);