[Mapbender-commits] r9421 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Mar 10 02:25:33 PST 2016


Author: armin11
Date: 2016-03-10 02:25:32 -0800 (Thu, 10 Mar 2016)
New Revision: 9421

Modified:
   trunk/mapbender/http/php/mod_interfaceWms4Kml.php
Log:
Bugfix for getmapurls without trailing ?

Modified: trunk/mapbender/http/php/mod_interfaceWms4Kml.php
===================================================================
--- trunk/mapbender/http/php/mod_interfaceWms4Kml.php	2016-03-09 17:13:56 UTC (rev 9420)
+++ trunk/mapbender/http/php/mod_interfaceWms4Kml.php	2016-03-10 10:25:32 UTC (rev 9421)
@@ -16,6 +16,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 require_once dirname(__FILE__) . "/../../core/globalSettings.php";
+require_once dirname(__FILE__)."/../classes/class_administration.php";
 if (isset($_REQUEST["id"]) & $_REQUEST["id"] != "") {
 	//validate to csv integer list
 	$testMatch = $_REQUEST["id"];
@@ -39,6 +40,8 @@
 	echo "Layer with requested id doesn't exists in registry or layer has no name, so it can't be invoked by Google Earth!";
 	die();
 }
+$admin = new administration();
+$getmapurl = $admin->checkURL($getmapurl);
 $getmapurl = eregi_replace("&","&", $rowKML['wms_getmap']);
 //exchange normal url with owsproxyurl
 $sessionId = session_id();



More information about the Mapbender_commits mailing list