diff --git a/src/core/Util.js b/src/core/Util.js index efb797a4..f8cbf53a 100644 --- a/src/core/Util.js +++ b/src/core/Util.js @@ -81,7 +81,7 @@ L.Util = { var params = []; for (var i in obj) { if (obj.hasOwnProperty(i)) { - params.push(i + '=' + obj[i]); + params.push(encodeURIComponent(i) + '=' + encodeURIComponent(obj[i])); } } return ((!existingUrl || existingUrl.indexOf('?') === -1) ? '?' : '&') + params.join('&');