Need to encode = as well as & (fixes #2406)

This commit is contained in:
John Firebaugh
2014-10-20 18:18:48 -07:00
parent 15e0c0a235
commit 4d2d24bbaa
+1 -1
View File
@@ -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]));