From a09f20e18289796f73ab795febc9dff542797ba1 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 21 Jul 2006 15:08:02 +0000 Subject: Removed redundant code. --- framework/Web/THttpRequest.php | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'framework') diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php index 6cd11113..dbe410f4 100644 --- a/framework/Web/THttpRequest.php +++ b/framework/Web/THttpRequest.php @@ -162,27 +162,7 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar } if($this->getUrlFormat()==='Path' && ($pathInfo=trim($this->_pathInfo,'/'))!=='') - { - $paths=explode('/',$pathInfo); - foreach($paths as $path) - { - if(($path=trim($path))!=='') - { - if(($pos=strpos($path,','))!==false) - { - $name=substr($path,0,$pos); - $value=substr($path,$pos+1); - if(($pos=strpos($name,'[]'))!==false) - $getVariables[substr($name,0,$pos)][]=$value; - else - $getVariables[$name]=$value; - } - else - $getVariables[$path]=''; - } - } $this->_items=array_merge($this->parseUrl(),$_POST); - } else $this->_items=array_merge($_GET,$_POST); -- cgit v1.2.3