From 7af5b1c657adcca28f012f49388740f82e6e2f91 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 24 Jan 2008 02:12:21 +0000 Subject: [PATCH] Fix silly typo which neither Paul nor I caught, with tests this time. Thanks Tim for catching it. git-svn-id: http://svn.openlayers.org/trunk/openlayers@5866 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Ajax.js | 2 +- tests/list-tests.html | 2 ++ tests/test_Ajax.html | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 tests/test_Ajax.html diff --git a/lib/OpenLayers/Ajax.js b/lib/OpenLayers/Ajax.js index 4058e5a0d5..8c721e9a13 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 + escapeURIComponent(uri); + uri = OpenLayers.ProxyHost + encodeURIComponent(uri); } var success = (onComplete) ? OpenLayers.Function.bind(onComplete, caller) diff --git a/tests/list-tests.html b/tests/list-tests.html index 1f5bd4cafc..40b56125f8 100644 --- a/tests/list-tests.html +++ b/tests/list-tests.html @@ -1,4 +1,5 @@