mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
Merge pull request #3771 from leon0399/leon0399-patch-1
feat: URI-encode markers loading world name
This commit is contained in:
commit
e7e8f1c245
@ -27,7 +27,7 @@ componentconstructors['markers'] = function(dynmap, configuration) {
|
|||||||
|
|
||||||
function loadmarkers(world) {
|
function loadmarkers(world) {
|
||||||
removeAllMarkers();
|
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) {
|
$.getJSON(url, function(data) {
|
||||||
var ts = data.timestamp;
|
var ts = data.timestamp;
|
||||||
|
Loading…
Reference in New Issue
Block a user