From af98835114e3c6a66bf6c7a7799eac26e489a171 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 1 May 2014 11:38:29 +0300 Subject: Optimization in CI_URI::_set_uri_string() --- system/core/URI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/core/URI.php b/system/core/URI.php index c990be7b4..2361ecf7d 100644 --- a/system/core/URI.php +++ b/system/core/URI.php @@ -160,7 +160,7 @@ class CI_URI { $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)); -- cgit v1.2.3-24-g4f1b