From e2588810fcf9d7a078b0b4f13dd7aee8477b744b Mon Sep 17 00:00:00 2001 From: Michael Sullivan Date: Fri, 6 Apr 2012 17:40:11 -0700 Subject: [PATCH] Fix for incorrect checkIp result inversion in Symfony\Component\HttpFoundation\RequestMatcher --- src/Symfony/Component/HttpFoundation/RequestMatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/RequestMatcher.php b/src/Symfony/Component/HttpFoundation/RequestMatcher.php index 0ca082d709625..0d93940737e82 100644 --- a/src/Symfony/Component/HttpFoundation/RequestMatcher.php +++ b/src/Symfony/Component/HttpFoundation/RequestMatcher.php @@ -136,7 +136,7 @@ public function matches(Request $request) return false; } - if (null !== $this->ip && !$this->checkIp($request->getClientIp(), $this->ip)) { + if (null !== $this->ip && $this->checkIp($request->getClientIp(), $this->ip)) { return false; }