mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
closes #3113
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user