feat: URI-encode markers loading world name

This commit is contained in:
Leonid Meleshin 2022-06-06 09:51:08 +03:00 committed by GitHub
parent 505d78a8e0
commit f8a81ce0ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
function loadmarkers(world) {
removeAllMarkers();
var url = concatURL(dynmap.options.url.markers, '_markers_/marker_'+world+'.json');
var url = concatURL(dynmap.options.url.markers, '_markers_/marker_' + encodeURIComponent(world) + '.json');
$.getJSON(url, function(data) {
var ts = data.timestamp;