diff options
Diffstat (limited to 'system/core')
-rwxr-xr-x | system/core/URI.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/URI.php b/system/core/URI.php index 999015949..88f237bcf 100755 --- a/system/core/URI.php +++ b/system/core/URI.php @@ -176,7 +176,7 @@ class CI_URI { $uri = parse_url($uri, PHP_URL_PATH); // Do some final cleaning of the URI and return it - return str_replace(array('//', '../'), '/', trim($uri, '/')); + return str_replace(array('//', '../'), '/', ltrim($uri, '/')); } // -------------------------------------------------------------------- |