Fix missing controller error

This commit is contained in:
ADmad 2012-12-23 12:56:57 +05:30
parent 4aea44fbd0
commit bacfa5a977

View file

@ -249,7 +249,7 @@ class CakeRequest implements ArrayAccess {
if (strpos($uri, '?') !== false) { if (strpos($uri, '?') !== false) {
list($uri) = explode('?', $uri, 2); list($uri) = explode('?', $uri, 2);
} }
if (empty($uri) || $uri == '/' || $uri == '//') { if (empty($uri) || $uri == '/' || $uri == '//' || $uri == '/index.php') {
return '/'; return '/';
} }
return $uri; return $uri;