mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
closes #3113
This commit is contained in:
@@ -162,7 +162,7 @@ categoriesController.get = function(req, res, next) {
|
||||
page = parseInt(req.query.page, 10) || 1,
|
||||
userPrivileges;
|
||||
|
||||
if (req.params.topic_index && !utils.isNumber(req.params.topic_index)) {
|
||||
if ((req.params.topic_index && !utils.isNumber(req.params.topic_index)) || !utils.isNumber(cid)) {
|
||||
return helpers.notFound(req, res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user