v1.18.x
barisusakli 10 years ago
parent 7312540b72
commit a924c456b9

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

@ -21,7 +21,7 @@ topicsController.get = function(req, res, next) {
sort = req.query.sort,
userPrivileges;
if (req.params.post_index && !utils.isNumber(req.params.post_index)) {
if ((req.params.post_index && !utils.isNumber(req.params.post_index)) || !utils.isNumber(tid)) {
return helpers.notFound(req, res);
}

Loading…
Cancel
Save