Escape URI component in getParamString
This commit is contained in:
parent
80413f4040
commit
c432c4eb24
@ -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('&');
|
||||
|
Loading…
Reference in New Issue
Block a user