mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
Add temp restriction:
This commit is contained in:
parent
e249abb1f1
commit
f3ca19f631
@ -12,6 +12,10 @@ router.get('/:uuid/:size?', function(req, res) {
|
||||
//console.log(req.param('size'))
|
||||
var uuid = req.param('uuid');
|
||||
var size = req.param('size') || 180;
|
||||
// Add temporary restriction to prevent app from crashing
|
||||
if (size <= 0) {
|
||||
size = 180;
|
||||
}
|
||||
console.log(uuid);
|
||||
if (valid_uuid.test(uuid)) {
|
||||
var filename = 'skins/' + uuid + ".png";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user