fixed request uri determination bug.

This commit is contained in:
Taylor Otwell 2011-06-16 07:35:06 -05:00
parent 1c694915e5
commit dae7912c40
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,11 @@ public static function uri()
{
throw new \Exception("Malformed request URI. Request terminated.");
}
if (strpos($uri, '/index.php') === 0)
{
$uri = str_replace('/index.php', '', $uri);
}
}
// -------------------------------------------------------
// Neither PATH_INFO or REQUEST_URI are available.