Skip to content

Commit 1d82c4a

Browse files
committed
better basePath support
1 parent bf4e878 commit 1d82c4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private function detectBasePath(string $basePath): string
4242
return $basePath;
4343
}
4444
if (isset($_SERVER['REQUEST_URI'])) {
45-
$fullPath = explode('?', $_SERVER['REQUEST_URI'])[0];
45+
$fullPath = urldecode(explode('?', $_SERVER['REQUEST_URI'])[0]);
4646
if (isset($_SERVER['PATH_INFO'])) {
4747
$path = $_SERVER['PATH_INFO'];
4848
if (substr($fullPath, -1 * strlen($path)) == $path) {

0 commit comments

Comments
 (0)