summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2008-05-07 18:40:28 +0200
committerDerek Jones <derek.jones@ellislab.com>2008-05-07 18:40:28 +0200
commit62a90205c4ace42df775dbe1354c41340e89c92c (patch)
treea3e77a8721ff9e8e2d570d58ddb2226e763aad43 /system/libraries
parent55bc1a81545b3d8cc854a2eb77018ff1c54cec23 (diff)
removed SCRIPT_NAME from path provided by ORIG_PATH_INFO to remove the path and script name from the URI data
(bug #3191)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/URI.php3
1 files changed, 2 insertions, 1 deletions
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;
}