From 9d6eb8216ea719e6e284f4fda84d73f11d0b7539 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Thu, 9 Feb 2012 15:07:10 +0100 Subject: [PATCH] [Routing] Fix a bug in the TraceableUrlMatcher --- src/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php b/src/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php index ec00380c61..df8e89ee2c 100644 --- a/src/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php +++ b/src/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php @@ -73,7 +73,7 @@ class TraceableUrlMatcher extends UrlMatcher if (in_array($n, $cr->getVariables()) && !preg_match($cr->getRegex(), $pathinfo)) { $this->addTrace(sprintf('Requirement for "%s" does not match (%s)', $n, $regex), self::ROUTE_ALMOST_MATCHES, $name, $route); - continue; + continue 2; } }