From 5f64950f9310bab45f4fc4fba733447f72ae8661 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 28 Jan 2011 23:00:12 +0100 Subject: fix filtered / at the end of URIs file_mod->download() depends on the trailing slash to determine whether the user wants highlighting or not so we prevent it from being removed. Signed-off-by: Florian Pritz --- system/core/URI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/core/URI.php') 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, '/')); } // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b