File tree Expand file tree Collapse file tree 2 files changed +0
-6
lines changed
src/Tqdev/PhpCrudApi/Middleware/Router Expand file tree Collapse file tree 2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -4813,9 +4813,6 @@ private function detectBasePath(string $basePath): string
4813
4813
$ fullPath = explode ('? ' , $ _SERVER ['REQUEST_URI ' ])[0 ];
4814
4814
if (isset ($ _SERVER ['PATH_INFO ' ])) {
4815
4815
$ path = $ _SERVER ['PATH_INFO ' ];
4816
- if (!$ path ) {
4817
- return $ _SERVER ['PHP_SELF ' ];
4818
- }
4819
4816
if (substr ($ fullPath , -1 * strlen ($ path )) == $ path ) {
4820
4817
return substr ($ fullPath , 0 , -1 * strlen ($ path ));
4821
4818
}
Original file line number Diff line number Diff line change @@ -45,9 +45,6 @@ private function detectBasePath(string $basePath): string
45
45
$ fullPath = explode ('? ' , $ _SERVER ['REQUEST_URI ' ])[0 ];
46
46
if (isset ($ _SERVER ['PATH_INFO ' ])) {
47
47
$ path = $ _SERVER ['PATH_INFO ' ];
48
- if (!$ path ) {
49
- return $ _SERVER ['PHP_SELF ' ];
50
- }
51
48
if (substr ($ fullPath , -1 * strlen ($ path )) == $ path ) {
52
49
return substr ($ fullPath , 0 , -1 * strlen ($ path ));
53
50
}
You can’t perform that action at this time.
0 commit comments