Merge pull request #3757 from leon0399/leon0399-patch-1
fix: support special symbols in world names
This commit is contained in:
commit
1d985b6ce9
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ DynMap.prototype = {
|
||||||
formatUrl: function(name, options) {
|
formatUrl: function(name, options) {
|
||||||
var url = this.options.url[name];
|
var url = this.options.url[name];
|
||||||
$.each(options, function(n,v) {
|
$.each(options, function(n,v) {
|
||||||
url = url.replace("{" + n + "}", v);
|
url = url.replace("{" + n + "}", encodeURIComponent(v));
|
||||||
});
|
});
|
||||||
return url;
|
return url;
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue