Commit 9b9a8803 authored by Taylor Otwell's avatar Taylor Otwell

Clean up request::uri method.

parent dae7912c
...@@ -43,10 +43,7 @@ class Request { ...@@ -43,10 +43,7 @@ class Request {
throw new \Exception("Malformed request URI. Request terminated."); throw new \Exception("Malformed request URI. Request terminated.");
} }
if (strpos($uri, '/index.php') === 0) $uri = str_replace('/index.php', '', $uri);
{
$uri = str_replace('/index.php', '', $uri);
}
} }
// ------------------------------------------------------- // -------------------------------------------------------
// Neither PATH_INFO or REQUEST_URI are available. // Neither PATH_INFO or REQUEST_URI are available.
......
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