summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-09-22 21:20:09 +0200
committeradmin <devnull@localhost>2006-09-22 21:20:09 +0200
commitdbd8aec6121f1d0a295031c268964357ebcc84e0 (patch)
tree4503627730e99218542d209290c4faba2c058039
parent592cdcbc58963f0cf811aea59db9907943460770 (diff)
-rw-r--r--system/libraries/Router.php11
1 files changed, 6 insertions, 5 deletions
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)