From 4d2d24bbaa13c2e58d8499332f336a14b710cb89 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 20 Oct 2014 18:18:48 -0700 Subject: [PATCH] Need to encode = as well as & (fixes #2406) --- js/id/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/util.js b/js/id/util.js index 357fec0fd..7c96480be 100644 --- a/js/id/util.js +++ b/js/id/util.js @@ -41,7 +41,7 @@ iD.util.stringQs = function(str) { }; iD.util.qsString = function(obj, noencode) { - function softEncode(s) { return s.replace('&', '%26'); } + function softEncode(s) { return s.replace('&', '%26').replace('=', '%3D'); } return Object.keys(obj).sort().map(function(key) { return encodeURIComponent(key) + '=' + ( noencode ? softEncode(obj[key]) : encodeURIComponent(obj[key]));