Commit f6ea58ed authored by Taylor Otwell's avatar Taylor Otwell

improve request uri detection.

parent 02305faf
...@@ -66,9 +66,11 @@ class Request { ...@@ -66,9 +66,11 @@ class Request {
$uri = substr($uri, strlen($base)); $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 // Request URIs to the root of the application will be returned
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment