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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Dec 9 09:13:45 EST 2009


Author: christoph
Date: 2009-12-09 09:13:45 -0500 (Wed, 09 Dec 2009)
New Revision: 5095

Modified:
   trunk/mapbender/http/javascripts/geometry.js
Log:


Modified: trunk/mapbender/http/javascripts/geometry.js
===================================================================
--- trunk/mapbender/http/javascripts/geometry.js	2009-12-09 14:03:54 UTC (rev 5094)
+++ trunk/mapbender/http/javascripts/geometry.js	2009-12-09 14:13:45 UTC (rev 5095)
@@ -1568,7 +1568,7 @@
 			}		
 			var key = this.getName(i);
 			var value = this.getValue(i);
-			str += "\"" + key + "\":\"" + value + "\"";
+			str += "\"" + key + "\":\"" + (value+'').replace(/([\\"'])/g, "\\$1").replace(/\u0000/g, "\\0") + "\"";
 		}
 		str += "}";
 	}



More information about the Mapbender_commits mailing list