fix: support special symbols in world names

Fix #3755
This commit is contained in:
Leonid Meleshin 2022-05-12 19:59:32 +03:00 committed by GitHub
parent 9c80489ec6
commit 505d78a8e0
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;
},