From 9c023d4325d9b6cc1e9fd0eb9212763ffcf1a288 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Wed, 18 Feb 2009 14:36:59 +0000 Subject: little tweak for ORIG_PATH_INFO servers so the URI isn't left with just a / --- system/libraries/URI.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/libraries/URI.php b/system/libraries/URI.php index b95c74e1a..e74af31f4 100644 --- a/system/libraries/URI.php +++ b/system/libraries/URI.php @@ -89,11 +89,11 @@ class CI_URI { } // No QUERY_STRING?... Maybe the ORIG_PATH_INFO variable exists? - $path = (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO'); + $path = str_replace($_SERVER['SCRIPT_NAME'], '', (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO')); if (trim($path, '/') != '' && $path != "/".SELF) { // remove path and script information so we have good URI data - $this->uri_string = str_replace($_SERVER['SCRIPT_NAME'], '', $path); + $this->uri_string = $path; return; } -- cgit v1.2.3-24-g4f1b