From f4b4e85433d265c0e352e058ef391408d394d9ee Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 24 Jan 2008 02:04:11 +0000 Subject: [PATCH] loadURL does not escape + (plus) character in proxied URL. Thanks to rdewit for following up on this, and to tschaub for reminding us of the right way to do things. r=pagameba (Closes #1262) git-svn-id: http://svn.openlayers.org/trunk/openlayers@5865 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Ajax.js b/lib/OpenLayers/Ajax.js index 76901e8d80..4058e5a0d5 100644 --- a/lib/OpenLayers/Ajax.js +++ b/lib/OpenLayers/Ajax.js @@ -60,7 +60,7 @@ OpenLayers.loadURL = function(uri, params, caller, onComplete, onFailure) { if (OpenLayers.ProxyHost && OpenLayers.String.startsWith(uri, "http")) { - uri = OpenLayers.ProxyHost + escape(uri); + uri = OpenLayers.ProxyHost + escapeURIComponent(uri); } var success = (onComplete) ? OpenLayers.Function.bind(onComplete, caller)