removed SCRIPT_NAME from path provided by ORIG_PATH_INFO to remove the path and script name from the URI data

(bug #3191)
diff --git a/system/libraries/URI.php b/system/libraries/URI.php
index f0d0210..8ee888a 100644
--- a/system/libraries/URI.php
+++ b/system/libraries/URI.php
@@ -92,7 +92,8 @@
 			$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;

 			}