Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / routing / Matcher / TraceableUrlMatcher.php
index cb1a35f4d302316b6cc8708122cc0cd8e58cb21a..9085be04248861d88b81918e6b491ba83d743747 100644 (file)
@@ -105,7 +105,7 @@ class TraceableUrlMatcher extends UrlMatcher
 
             // check condition
             if ($condition = $route->getCondition()) {
-                if (!$this->getExpressionLanguage()->evaluate($condition, array('context' => $this->context, 'request' => $this->request))) {
+                if (!$this->getExpressionLanguage()->evaluate($condition, array('context' => $this->context, 'request' => $this->request ?: $this->createRequest($pathinfo)))) {
                     $this->addTrace(sprintf('Condition "%s" does not evaluate to "true"', $condition), self::ROUTE_ALMOST_MATCHES, $name, $route);
 
                     continue;