This commit is contained in:
barisusakli
2015-05-04 13:16:31 -04:00
parent 7312540b72
commit a924c456b9
2 changed files with 2 additions and 2 deletions

View File

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