summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2007-09-23 13:58:19 +0000
committerxue <>2007-09-23 13:58:19 +0000
commitf3a61945f714efd4f33242e678cc33202a661a95 (patch)
tree7774dfeb1f0b5d72b468fbf41620f1b844613249 /framework
parenteae868ae7b80cfeebb8e732014d352d6cf8075c3 (diff)
make custom URL variables available in $_GET
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/THttpRequest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php
index 77c9b563..a9e5fe68 100644
--- a/framework/Web/THttpRequest.php
+++ b/framework/Web/THttpRequest.php
@@ -587,7 +587,10 @@ class THttpRequest extends TApplicationComponent implements IteratorAggregate,Ar
public function resolveRequest($serviceIDs)
{
Prado::trace("Resolving request from ".$_SERVER['REMOTE_ADDR'],'System.Web.THttpRequest');
- $this->_items=array_merge($_GET,$this->parseUrl(),$_POST);
+ $getParams=$this->parseUrl();
+ foreach($getParams as $name=>$value)
+ $_GET[$name]=$value;
+ $this->_items=array_merge($_GET,$_POST);
$this->_requestResolved=true;
foreach($serviceIDs as $serviceID)
{