mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-02-17 12:21:56 +01:00
Merge pull request #3223 from mooinglemur/mooinglemur-patch-1
Allow for URI-unsafe player names
This commit is contained in:
commit
5f9e93c312
@ -8,9 +8,9 @@ function createMinecraftHead(player,size,completed,failed) {
|
||||
};
|
||||
var faceimg;
|
||||
if(size == 'body')
|
||||
faceimg = 'faces/body/' + player + '.png';
|
||||
faceimg = 'faces/body/' + encodeURIComponent(player) + '.png';
|
||||
else
|
||||
faceimg = 'faces/' + size + 'x' + size + '/' + player + '.png';
|
||||
faceimg = 'faces/' + size + 'x' + size + '/' + encodeURIComponent(player) + '.png';
|
||||
|
||||
faceImage.src = concatURL(dynmap.options.url.markers, faceimg);
|
||||
}
|
||||
@ -57,4 +57,4 @@ function chat_encoder(message) {
|
||||
}
|
||||
}
|
||||
return message.text;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user