commit | a4399051455f844f432ac453fb9c3202c4464cf2 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Sat Jan 18 18:58:06 2014 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Sat Jan 18 18:58:06 2014 +0200 |
tree | d60eb255b31295d51d7b7a156d4cd6a62feffe1b | |
parent | b2a0e70585367e59bf2d106629c0e9c3ab1370c2 [diff] [blame] |
Fix CI_URI:: not being properly indexed
diff --git a/system/core/URI.php b/system/core/URI.php index 6e0d7f9..13682cb 100644 --- a/system/core/URI.php +++ b/system/core/URI.php
@@ -156,6 +156,7 @@ } } + $this->segments[0] = NULL; // Populate the segments array foreach (explode('/', preg_replace('|/*(.+?)/*$|', '\\1', $this->uri_string)) as $val) { @@ -167,6 +168,8 @@ $this->segments[] = $val; } } + + unset($this->segments[0]); } }