diff --git a/src/routes/api.js b/src/routes/api.js index 286392e141..c70dbd107b 100644 --- a/src/routes/api.js +++ b/src/routes/api.js @@ -212,7 +212,7 @@ var path = require('path'), page = req.query.page; } - if(parseInt(page, 10) < 1) { + if(!utils.isNumber(page) || parseInt(page, 10) < 1) { return res.send(404); }