commit | af98835114e3c6a66bf6c7a7799eac26e489a171 | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Thu May 01 11:38:29 2014 +0300 |
committer | Andrey Andreev <narf@devilix.net> | Thu May 01 11:38:29 2014 +0300 |
tree | c74dcd4a00f3b3fda980c4f6a415be3d542e463d | |
parent | fc67edd293871565d0723924233186991337e704 [diff] |
Optimization in CI_URI::_set_uri_string()
diff --git a/system/core/URI.php b/system/core/URI.php index c990be7..2361ecf 100644 --- a/system/core/URI.php +++ b/system/core/URI.php
@@ -160,7 +160,7 @@ $this->segments[0] = NULL; // Populate the segments array - foreach (explode('/', preg_replace('|/*(.+?)/*$|', '\\1', $this->uri_string)) as $val) + foreach (explode('/', trim($this->uri->string, '/')) as $val) { // Filter segments for security $val = trim($this->filter_uri($val));