1. Harro Verton
  2. CodeIgniter Reactor

Commits

eric...@ericbarnes.local  committed 77b2eee

Fixes #27. When the default controller was used, the _detect_uri() method was returning an incorrect URI, which caused a 404 when a query string was used and no controller specified. via Dan Horrigan

  • Participants
  • Parent commits 91d2edf
  • Branches default

Comments (0)

Files changed (1)

File system/core/URI.php

View file
  • Ignore whitespace
 			$_SERVER['QUERY_STRING'] = '';
 			$_GET = array();
 		}
+		
+		if ($uri == '/' || empty($uri))
+		{
+			return '/';
+		}
+				
 		$uri = parse_url($uri, PHP_URL_PATH);
 
 		// Do some final cleaning of the URI and return it