[Mapbender-commits] r8545 - trunk/mapbender/owsproxy/http

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Jan 18 01:18:15 PST 2013


Author: armin11
Date: 2013-01-18 01:18:15 -0800 (Fri, 18 Jan 2013)
New Revision: 8545

Modified:
   trunk/mapbender/owsproxy/http/index.php
Log:
Little bugfix for external URLs in getFeatureInfo.

Modified: trunk/mapbender/owsproxy/http/index.php
===================================================================
--- trunk/mapbender/owsproxy/http/index.php	2013-01-18 09:06:59 UTC (rev 8544)
+++ trunk/mapbender/owsproxy/http/index.php	2013-01-18 09:18:15 UTC (rev 8545)
@@ -85,7 +85,8 @@
 } else {
 	$e= new mb_notice("mb_user_id found in session: ".$_SESSION['mb_user_id']);
 }
-
+//start the session to be able to write urls to it
+session_start();
 $n = new administration;
 //if($_SESSION['mb_user_ip'] != $_SERVER['REMOTE_ADDR']){
 //	throwE(array("No session data available.","Permission denied.","Please authenticate."));
@@ -432,7 +433,7 @@
 }
 
 function matchUrls($content){
-	if(!session_is_registered("owsproxyUrls")){
+	if(!session_is_registered("owsproxyUrls")){ //TODO: exchange function, because it is deprecated and will not longer be supported by php 5.4!
 		$_SESSION["owsproxyUrls"] = array();
 		$_SESSION["owsproxyUrls"]["id"] = array();
 		$_SESSION["owsproxyUrls"]["url"] = array();



More information about the Mapbender_commits mailing list