Skip to content

Commit d2ade90

Browse files
committed
Generate candidates from decoded URLs
Symfony\Component\Routing\Matcher\UrlMatcher::match() performs a rawurldecode() on a request's pathInfo in order to find matching routes, so one must do the same when generating candidate routes.
1 parent c8a5052 commit d2ade90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doctrine/Phpcr/PrefixCandidates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function restrictQuery($queryBuilder)
103103
public function getCandidates(Request $request)
104104
{
105105
$candidates = array();
106-
$url = $request->getPathInfo();
106+
$url = rawurldecode($request->getPathInfo());
107107
foreach ($this->getPrefixes() as $prefix) {
108108
$candidates = array_unique(array_merge($candidates, $this->getCandidatesFor($url, $prefix)));
109109
}

0 commit comments

Comments
 (0)