From 9b9a8803264a53303d2f71fbf03e0da13b46ec39 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 16 Jun 2011 06:17:29 -0700 Subject: [PATCH] Clean up request::uri method. --- system/request.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/system/request.php b/system/request.php index fe838bf9..be16faf1 100644 --- a/system/request.php +++ b/system/request.php @@ -43,10 +43,7 @@ public static function uri() 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.