From 086506b9266667a9686e7c9c2a7efe6efab0e740 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Thu, 12 Mar 2009 18:42:13 +0000 Subject: [PATCH] use String(boolean) instead of encodeURIComponent(boolean) to convert boolean to string. r=tschaub,crschmidt (closes #1982) git-svn-id: http://svn.openlayers.org/trunk/openlayers@9035 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/XML.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Format/XML.js b/lib/OpenLayers/Format/XML.js index 7dbdcd46cb..4379a6e466 100644 --- a/lib/OpenLayers/Format/XML.js +++ b/lib/OpenLayers/Format/XML.js @@ -500,7 +500,7 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, { var value = options.value; if(value != null) { if(typeof value == "boolean") { - value = encodeURIComponent(value); + value = String(value); } node.appendChild(this.createTextNode(value)); }