[Mapbender-commits] r1925 - trunk/mapbender/owsproxy/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Dec 14 06:34:13 EST 2007
Author: verenadiewald
Date: 2007-12-14 06:34:13 -0500 (Fri, 14 Dec 2007)
New Revision: 1925
Modified:
trunk/mapbender/owsproxy/http/classes/class_QueryHandler.php
Log:
extended function setRequestParams
Modified: trunk/mapbender/owsproxy/http/classes/class_QueryHandler.php
===================================================================
--- trunk/mapbender/owsproxy/http/classes/class_QueryHandler.php 2007-12-14 11:17:38 UTC (rev 1924)
+++ trunk/mapbender/owsproxy/http/classes/class_QueryHandler.php 2007-12-14 11:34:13 UTC (rev 1925)
@@ -46,15 +46,23 @@
* @return string[] an associative array with request parameters keys (tolowercase) and values (tolower)
*/
function setRequestParams($keys){
- for($i=0; $i<count($keys); $i++){
- $this->reqParams[strtolower($keys[$i])] = $_REQUEST[$keys[$i]];
- $this->reqParamsToLower[strtolower($keys[$i])] = $_REQUEST[$keys[$i]];
- if($keys[$i] == $this->owsproxyServiceKey){
- $this->owsproxyServiceId = $_REQUEST[$keys[$i]];
- $notice = new mb_notice("owsId: ".$this->owsproxyServiceId);
- }
- }
- }
+ for($i=0; $i<count($keys); $i++){
+ //SZ, 30.11.2007, writing REQUEST parameter values into local variable
+ //as key will be modified
+ $reqValue = $_REQUEST[$keys[$i]];
+ if(strpos($keys[$i], "?") === 0){
+ $keys[$i] = substr($keys[$i],1);
+ }
+ $this->reqParams[strtolower($keys[$i])] = $reqValue;
+ $this->reqParamsToLower[strtolower($keys[$i])] = $reqValue;
+ if($keys[$i] == $this->owsproxyServiceKey){
+ $this->owsproxyServiceId = $_REQUEST[$keys[$i]];
+ $notice = new mb_notice("owsId: ".$this->owsproxyServiceId);
+ }
+ }
+ }
+
+
/**
* checks is a request param is part of the original request
*
More information about the Mapbender_commits
mailing list