mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-03 01:52:40 +00:00
fixes #6509, dispatcher uri error on IIS
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8237 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d2245fd514
commit
c1bb9700f9
1 changed files with 2 additions and 2 deletions
|
@ -515,10 +515,10 @@ class Dispatcher extends Object {
|
||||||
parse_str($uri[1], $_GET);
|
parse_str($uri[1], $_GET);
|
||||||
}
|
}
|
||||||
$uri = $uri[0];
|
$uri = $uri[0];
|
||||||
} elseif (empty($uri) && is_string(env('QUERY_STRING'))) {
|
} else {
|
||||||
$uri = env('QUERY_STRING');
|
$uri = env('QUERY_STRING');
|
||||||
}
|
}
|
||||||
if (strpos($uri, 'index.php') !== false) {
|
if (is_string($uri) && strpos($uri, 'index.php') !== false) {
|
||||||
list(, $uri) = explode('index.php', $uri, 2);
|
list(, $uri) = explode('index.php', $uri, 2);
|
||||||
}
|
}
|
||||||
if (empty($uri) || $uri == '/' || $uri == '//') {
|
if (empty($uri) || $uri == '/' || $uri == '//') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue