We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf4e878 commit 1d82c4aCopy full SHA for 1d82c4a
src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php
@@ -42,7 +42,7 @@ private function detectBasePath(string $basePath): string
42
return $basePath;
43
}
44
if (isset($_SERVER['REQUEST_URI'])) {
45
- $fullPath = explode('?', $_SERVER['REQUEST_URI'])[0];
+ $fullPath = urldecode(explode('?', $_SERVER['REQUEST_URI'])[0]);
46
if (isset($_SERVER['PATH_INFO'])) {
47
$path = $_SERVER['PATH_INFO'];
48
if (substr($fullPath, -1 * strlen($path)) == $path) {
0 commit comments