[Mapbender-commits] r2997 - in branches/2.5/http: javascripts php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Sep 24 10:03:35 EDT 2008


Author: verenadiewald
Date: 2008-09-24 10:03:34 -0400 (Wed, 24 Sep 2008)
New Revision: 2997

Modified:
   branches/2.5/http/javascripts/mod_highlightPOI.php
   branches/2.5/http/php/mod_meetingPoint.php
Log:
solution for ticket http://trac.osgeo.org/mapbender/ticket/299

Modified: branches/2.5/http/javascripts/mod_highlightPOI.php
===================================================================
--- branches/2.5/http/javascripts/mod_highlightPOI.php	2008-09-24 10:11:47 UTC (rev 2996)
+++ branches/2.5/http/javascripts/mod_highlightPOI.php	2008-09-24 14:03:34 UTC (rev 2997)
@@ -67,14 +67,13 @@
 
 function mod_highlightPOI_init(){
 		var myPOI = "<?php if (CHARSET == 'UTF-8'){
-				echo utf8_encode($_SESSION['mb_myPOI']);
+				echo preg_replace("/\n/", "<br>", $_SESSION['mb_myPOI']);
 			}else{
-				echo $_SESSION['mb_myPOI'];
+				echo preg_replace("/\n/", "<br>", utf8_decode($_SESSION['mb_myPOI']));
 			} 
 			?>";
-
 	if(myPOI != ""){
- 		mod_highlightPOI_params = myPOI.split(",");
+ 		mod_highlightPOI_params = myPOI.split("|");
 
 	  
   

Modified: branches/2.5/http/php/mod_meetingPoint.php
===================================================================
--- branches/2.5/http/php/mod_meetingPoint.php	2008-09-24 10:11:47 UTC (rev 2996)
+++ branches/2.5/http/php/mod_meetingPoint.php	2008-09-24 14:03:34 UTC (rev 2997)
@@ -221,7 +221,7 @@
     	my_meetingPoint += encodeURIComponent(document.forms[0].mytext.value);
 
     	
-    	my_meetingPoint += "," + document.forms[0].x.value + ",";
+    	my_meetingPoint += "|" + document.forms[0].x.value + "|";
     	my_meetingPoint += document.forms[0].y.value;
 
     	if(meetingPoint_export_format == 'email'){



More information about the Mapbender_commits mailing list