|
@@ -4812,14 +4812,11 @@ class SimpleRouter implements Router
|
4812
|
4812
|
if (isset($_SERVER['PATH_INFO'])) {
|
4813
|
4813
|
$fullPath = explode('?', $_SERVER['REQUEST_URI'])[0];
|
4814
|
4814
|
$path = $_SERVER['PATH_INFO'];
|
4815
|
|
- if (!$path) {
|
4816
|
|
- return $_SERVER['PHP_SELF'];
|
4817
|
|
- }
|
4818
|
4815
|
if (substr($fullPath, -1 * strlen($path)) == $path) {
|
4819
|
4816
|
return substr($fullPath, 0, -1 * strlen($path));
|
4820
|
4817
|
}
|
4821
|
4818
|
}
|
4822
|
|
- return '/';
|
|
4819
|
+ return $_SERVER['PHP_SELF'];
|
4823
|
4820
|
}
|
4824
|
4821
|
|
4825
|
4822
|
private function loadPathTree(): PathTree
|