From 62a90205c4ace42df775dbe1354c41340e89c92c Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 7 May 2008 16:40:28 +0000 Subject: removed SCRIPT_NAME from path provided by ORIG_PATH_INFO to remove the path and script name from the URI data (bug #3191) --- system/libraries/URI.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system') diff --git a/system/libraries/URI.php b/system/libraries/URI.php index f0d02101a..8ee888a2e 100644 --- a/system/libraries/URI.php +++ b/system/libraries/URI.php @@ -92,7 +92,8 @@ class CI_URI { $path = (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO'); if (trim($path, '/') != '' AND $path != "/".SELF) { - $this->uri_string = $path; + // remove path and script information so we have good URI data + $this->uri_string = str_replace($_SERVER['SCRIPT_NAME'], '', $path); return; } -- cgit v1.2.3-24-g4f1b