improve request uri detection.

This commit is contained in:
Taylor Otwell 2011-10-11 21:41:57 -05:00
parent 02305fafc2
commit f6ea58ed96
1 changed files with 4 additions and 2 deletions

View File

@ -66,9 +66,11 @@ public static function uri()
$uri = substr($uri, strlen($base));
}
if (strpos($uri, '/index.php') === 0)
$index = '/'.Config::$items['application']['index'];
if (trim($index) !== '' and strpos($uri, $index) === 0)
{
$uri = substr($uri, 10);
$uri = substr($uri, strlen($index));
}
// Request URIs to the root of the application will be returned