Browse Source

fixed request uri determination bug.

Taylor Otwell 14 years ago
parent
commit
dae7912c40
1 changed files with 5 additions and 0 deletions
  1. 5 0
      system/request.php

+ 5 - 0
system/request.php

@@ -42,6 +42,11 @@ class Request {
 			{
 				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.