summaryrefslogtreecommitdiffstats
path: root/system/libraries/URI.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/URI.php')
-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;
}