Skip to content

Commit

Permalink
URL Decode paths
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Jul 7, 2022
1 parent 7f0d8d0 commit 65c9041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function getComponentAliases()
*/
public function handleRequest(Request $request): Response
{
$path = substr($request->getPathInfo(), strlen(Request::create($this->_baseUri)->getPathInfo()));
$path = urldecode(substr($request->getPathInfo(), strlen(Request::create($this->_baseUri)->getPathInfo())));
$pathParts = array_filter(explode('/', $path));
$type = array_shift($pathParts);
switch($type)
Expand Down

0 comments on commit 65c9041

Please sign in to comment.