mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 21:45:47 +01:00
check for number
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user