[Routing] Fix a bug in the TraceableUrlMatcher

This commit is contained in:
Victor Berchet 2012-02-09 15:07:10 +01:00
parent 9fc8d284be
commit 9d6eb8216e

View File

@ -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;
}
}