diff options
-rw-r--r-- | system/libraries/Router.php | 3 | ||||
-rw-r--r-- | user_guide/changelog.html | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/system/libraries/Router.php b/system/libraries/Router.php index d24192c18..f6464a31d 100644 --- a/system/libraries/Router.php +++ b/system/libraries/Router.php @@ -102,6 +102,9 @@ class CI_Router { $this->set_method('index');
$this->_set_request(array($this->default_controller, 'index'));
+ // re-index the routed segments array so it starts with 1 rather than 0
+ $this->uri->_reindex_segments();
+
log_message('debug', "No URI present. Default controller set.");
return;
}
diff --git a/user_guide/changelog.html b/user_guide/changelog.html index 48e2a031a..dc3cabca8 100644 --- a/user_guide/changelog.html +++ b/user_guide/changelog.html @@ -92,6 +92,7 @@ Change Log <li>Fixed a bug (#3396) where certain POST variables would cause a PHP warning.</li>
<li>Fixed a bug in query binding (#3402).</li>
<li>Changed order of SQL keywords in the Profiler $highlight array so OR would not be highlighted before ORDER BY</li>
+ <li>Fixed a bug (#3445) where the routed segment array was not re-indexed to begin with 1 when the default controller is used.</li>
<li>Fixed assorted user guide typos.</li>
</ul>
|