[Mapbender-commits] r9611 - trunk/mapbender/http_auth/http

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Sep 29 08:31:42 PDT 2016


Author: verenadiewald
Date: 2016-09-29 08:31:42 -0700 (Thu, 29 Sep 2016)
New Revision: 9611

Modified:
   trunk/mapbender/http_auth/http/index.php
Log:
bugfix for correct replacement of GET and POST urls in GetCapibilities Doc

Modified: trunk/mapbender/http_auth/http/index.php
===================================================================
--- trunk/mapbender/http_auth/http/index.php	2016-09-29 15:18:36 UTC (rev 9610)
+++ trunk/mapbender/http_auth/http/index.php	2016-09-29 15:31:42 UTC (rev 9611)
@@ -790,8 +790,8 @@
 {
     global $arrayOnlineresources;
     global $sid, $serviceId, $wfsId;
-    $t = array(htmlentities($arrayOnlineresources["wfs_getcapabilities"]), htmlentities($arrayOnlineresources["wfs_getmap"]),
-        htmlentities($arrayOnlineresources["wfs_getfeatureinfo"]));
+    $t = array(htmlentities(preg_replace('/\?$/','',$arrayOnlineresources["wfs_getcapabilities"])), htmlentities($arrayOnlineresources["wfs_getfeature"]),
+        htmlentities($arrayOnlineresources["wfs_describefeaturetype"]));
     //$new = OWSPROXY . "/" . $sid . "/" . $serviceId . "?";
     //TODO - set to persistent url
     $owsproxyUrl = parse_url(OWSPROXY);
@@ -800,7 +800,7 @@
     } else {
 	$port = ":".$owsproxyUrl['port'];
     }
-    $new = $owsproxyUrl['scheme'] . "://" .$owsproxyUrl['host']. $port . "/registry/wfs/" . $wfsId ."?";
+    $new = $owsproxyUrl['scheme'] . "://" .$owsproxyUrl['host']. $port . "/registry/wfs/" . $wfsId;# ."?";
 		
     //get actual capabilities from external server
     if (!$auth) {



More information about the Mapbender_commits mailing list