Another use of CI_URI::_remove_relative_directory()
diff --git a/system/core/URI.php b/system/core/URI.php
index 07add5a..900472b 100644
--- a/system/core/URI.php
+++ b/system/core/URI.php
@@ -274,7 +274,7 @@
 
 		parse_str($_SERVER['QUERY_STRING'], $_GET);
 
-		return str_replace(array('//', '../'), '/', trim($uri, '/'));
+		return $this->_remove_relative_directory($uri);
 	}
 
 	// --------------------------------------------------------------------