From dbd8aec6121f1d0a295031c268964357ebcc84e0 Mon Sep 17 00:00:00 2001 From: admin Date: Fri, 22 Sep 2006 19:20:09 +0000 Subject: --- system/libraries/Router.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'system') diff --git a/system/libraries/Router.php b/system/libraries/Router.php index 5bbf9e6ca..d1751a0e9 100644 --- a/system/libraries/Router.php +++ b/system/libraries/Router.php @@ -85,11 +85,8 @@ class CI_Router { $this->default_controller = ( ! isset($this->routes['default_controller']) OR $this->routes['default_controller'] == '') ? FALSE : strtolower($this->routes['default_controller']); - // Get the URI string - $this->uri_string = $this->_get_uri_string(); - // Is there a URI string? If not, the default controller specified in the "routes" file will be shown. - if ($this->uri_string == '') + if (($this->uri_string = $this->_get_uri_string()) == '') { if ($this->default_controller === FALSE) { @@ -338,7 +335,11 @@ class CI_Router { */ function _parse_request_uri() { - $request_uri = getenv('REQUEST_URI'); + if (($request_uri = getenv('REQUEST_URI')) == '') + { + return ''; + } + $fc_path = FCPATH; if (strpos($request_uri, '?') !== FALSE) -- cgit v1.2.3-24-g4f1b