[Mapbender-commits] r1177 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Mar 2 13:08:04 EST 2007


Author: christoph
Date: 2007-03-02 13:08:04 -0500 (Fri, 02 Mar 2007)
New Revision: 1177

Modified:
   trunk/mapbender/http/javascripts/mod_addWMSgeneralFunctions.js
Log:
replaced "escape" by "encodeURIComponent"

Modified: trunk/mapbender/http/javascripts/mod_addWMSgeneralFunctions.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_addWMSgeneralFunctions.js	2007-03-02 18:06:26 UTC (rev 1176)
+++ trunk/mapbender/http/javascripts/mod_addWMSgeneralFunctions.js	2007-03-02 18:08:04 UTC (rev 1177)
@@ -1,9 +1,10 @@
 function mod_addWMS_load(caps){
-	window.frames['loadData'].document.location.href = "../php/mod_createJSObjFromXML.php?caps=" + escape(caps);
+	window.frames['loadData'].document.location.href = "../php/mod_createJSObjFromXML.php?caps=" + encodeURIComponent(caps);
 }
 
 function mod_addLayer_load(caps,layer_name){
-	window.frames['loadData'].document.location.href = "../php/mod_createJSLayerObjFromXML.php?caps=" + escape(caps) + "&layer_name=" + escape(layer_name);
+	var url = "../php/mod_createJSLayerObjFromXML.php?caps=" + encodeURIComponent(caps) + "&layer_name=" + encodeURIComponent(layer_name);
+	window.frames['loadData'].document.location.href = url;
 }
 
 function mod_addWMS_refresh(){



More information about the Mapbender_commits mailing list