Lower case UUIDs - skins/avatars

This commit is contained in:
Jake 2014-12-08 15:36:00 -06:00
parent cd7830242e
commit e4bdecfbb7
2 changed files with 4 additions and 4 deletions

View File

@ -33,8 +33,8 @@ router.get("/:uuid.:ext?", function(req, res) {
return;
}
// strip dashes
uuid = uuid.replace(/-/g, "");
// strip dashes, to lower case
uuid = uuid.replace(/-/g, "").toLowerCase();
try {
helpers.get_avatar(uuid, helm, size, function(err, status, image, hash) {

View File

@ -18,8 +18,8 @@ router.get("/:uuid.:ext?", function(req, res) {
return;
}
// strip dashes
uuid = uuid.replace(/-/g, "");
// strip dashes, to lower case
uuid = uuid.replace(/-/g, "").toLowerCase();
try {
helpers.get_skin(uuid, function(err, hash, image) {