[Mapbender-commits] r10180 - trunk/mapbender/http/extensions/mobilemap2/scripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jul 4 02:42:22 PDT 2019
Author: armin11
Date: 2019-07-04 02:42:22 -0700 (Thu, 04 Jul 2019)
New Revision: 10180
Modified:
trunk/mapbender/http/extensions/mobilemap2/scripts/proxy.php
Log:
Fix security - use mb connector class
Modified: trunk/mapbender/http/extensions/mobilemap2/scripts/proxy.php
===================================================================
--- trunk/mapbender/http/extensions/mobilemap2/scripts/proxy.php 2019-07-04 09:00:30 UTC (rev 10179)
+++ trunk/mapbender/http/extensions/mobilemap2/scripts/proxy.php 2019-07-04 09:42:22 UTC (rev 10180)
@@ -1,9 +1,10 @@
<?php
require_once(dirname(__FILE__)."/../../../../conf/mapbender.conf");
-
+require_once(dirname(__FILE__)."/../../../../http/classes/class_connector.php");
$query = urldecode( $_GET[ "q" ] );
+/*
// Open the Curl session
$session = curl_init( $query );
@@ -23,9 +24,10 @@
curl_setopt( $session, CURLOPT_RETURNTRANSFER, true );
// Make the call
-$response = curl_exec( $session );
-
+$response = curl_exec( $session );*/
+$connector = new connector();
+$result = $connector->load($q);
//Datenausgabe
-echo $response;
+echo $result;
-curl_close( $session );
+//curl_close( $session );
More information about the Mapbender_commits
mailing list