diff options
author | Florian Pritz <bluewind@server-speed.net> | 2011-01-28 23:00:12 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@server-speed.net> | 2011-01-28 23:01:37 +0100 |
commit | 5f64950f9310bab45f4fc4fba733447f72ae8661 (patch) | |
tree | 33ab54ef1a19007ab0e60ac049fd1c5a7c81bc1e | |
parent | 4cf80cd7cc9a8cdfb357e6fdca7ed4e05e806b31 (diff) |
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 <bluewind@server-speed.net>
-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, '/')); } // -------------------------------------------------------------------- |