Skip to content

Commit

Permalink
argument should be rawurldecode, not urldecode. The plus "+", dollar …
Browse files Browse the repository at this point in the history
…"$", and comma "," characters are treated as reserved within the query component.
  • Loading branch information
Raffael.lo committed Sep 27, 2016
1 parent 7c33189 commit 01593e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ protected function dispatchRouterAndPrepareRoute(ServerRequestInterface $request
if ($routeInfo[0] === Dispatcher::FOUND) {
$routeArguments = [];
foreach ($routeInfo[2] as $k => $v) {
$routeArguments[$k] = urldecode($v);
$routeArguments[$k] = rawurldecode($v);
}

$route = $router->lookupRoute($routeInfo[1]);
Expand Down

0 comments on commit 01593e3

Please sign in to comment.