mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fix missing controller error
This commit is contained in:
parent
4aea44fbd0
commit
bacfa5a977
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ class CakeRequest implements ArrayAccess {
|
|||
if (strpos($uri, '?') !== false) {
|
||||
list($uri) = explode('?', $uri, 2);
|
||||
}
|
||||
if (empty($uri) || $uri == '/' || $uri == '//') {
|
||||
if (empty($uri) || $uri == '/' || $uri == '//' || $uri == '/index.php') {
|
||||
return '/';
|
||||
}
|
||||
return $uri;
|
||||
|
|
Loading…
Add table
Reference in a new issue