Browse Source

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

Jordi Boggiano 14 years ago
parent
commit
a832885960
1 changed files with 1 additions and 1 deletions
  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);