summaryrefslogtreecommitdiff
path: root/framework/Web
diff options
context:
space:
mode:
authorxue <>2007-08-11 19:22:41 +0000
committerxue <>2007-08-11 19:22:41 +0000
commit8011f9cec174c781bd975bb4c7094da2e0209bae (patch)
treee5aa49e27d40bad3b1abf0cf9e47de6ee7c57e0e /framework/Web
parenta3514628a569c0b601f4abe41a831d34df32f677 (diff)
fixed path_info bug.
Diffstat (limited to 'framework/Web')
-rw-r--r--framework/Web/THttpRequest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php
index a6941d5e..77c9b563 100644
--- a/framework/Web/THttpRequest.php
+++ b/framework/Web/THttpRequest.php
@@ -187,7 +187,7 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar
if(isset($_SERVER['PATH_INFO']))
$this->_pathInfo=$_SERVER['PATH_INFO'];
- else if(strpos($_SERVER['PHP_SELF'],$_SERVER['SCRIPT_NAME'])===0)
+ else if(strpos($_SERVER['PHP_SELF'],$_SERVER['SCRIPT_NAME'])===0 && $_SERVER['PHP_SELF']!==$_SERVER['SCRIPT_NAME'])
$this->_pathInfo=substr($_SERVER['PHP_SELF'],strlen($_SERVER['SCRIPT_NAME']));
else
$this->_pathInfo='';