more fixes

This commit is contained in:
Baris Soner Usakli
2014-01-25 19:50:50 -05:00
parent 1084523c92
commit 75f178636b
5 changed files with 7 additions and 2 deletions

View File

@@ -171,7 +171,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);
}