From 65c904169160f39d1f141b072f774b1ce564ad83 Mon Sep 17 00:00:00 2001 From: Brooke Bryan Date: Thu, 7 Jul 2022 09:01:20 +0100 Subject: [PATCH] URL Decode paths --- src/Dispatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dispatch.php b/src/Dispatch.php index 63cf0a7..7d08117 100644 --- a/src/Dispatch.php +++ b/src/Dispatch.php @@ -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)