Merge pull request #3757 from leon0399/leon0399-patch-1

fix: support special symbols in world names
This commit is contained in:
mikeprimm 2022-06-05 16:52:30 -05:00 committed by GitHub
commit 374309e004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ DynMap.prototype = {
formatUrl: function(name, options) {
var url = this.options.url[name];
$.each(options, function(n,v) {
url = url.replace("{" + n + "}", v);
url = url.replace("{" + n + "}", encodeURIComponent(v));
});
return url;
},