From 505d78a8e0a8f3c1d6fb4d660ea5aafd9fb84bb5 Mon Sep 17 00:00:00 2001 From: Leonid Meleshin Date: Thu, 12 May 2022 19:59:32 +0300 Subject: [PATCH] fix: support special symbols in world names Fix #3755 --- DynmapCore/src/main/resources/extracted/web/js/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynmapCore/src/main/resources/extracted/web/js/map.js b/DynmapCore/src/main/resources/extracted/web/js/map.js index 0bbcd9f7..a0ec24b6 100644 --- a/DynmapCore/src/main/resources/extracted/web/js/map.js +++ b/DynmapCore/src/main/resources/extracted/web/js/map.js @@ -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; },