소스 검색

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

Jordi Boggiano 14 년 전
부모
커밋
a832885960
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);