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

feat: URI-encode markers loading world name
This commit is contained in:
mikeprimm 2022-06-12 11:58:59 -05:00 committed by GitHub
commit e7e8f1c245
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;