summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/core/URI.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/core/URI.php b/system/core/URI.php
index 6e0d7f993..13682cbee 100644
--- a/system/core/URI.php
+++ b/system/core/URI.php
@@ -156,6 +156,7 @@ class CI_URI {
}
}
+ $this->segments[0] = NULL;
// Populate the segments array
foreach (explode('/', preg_replace('|/*(.+?)/*$|', '\\1', $this->uri_string)) as $val)
{
@@ -167,6 +168,8 @@ class CI_URI {
$this->segments[] = $val;
}
}
+
+ unset($this->segments[0]);
}
}