diff --git a/src/lib/web/statusRouter.ts b/src/lib/web/statusRouter.ts index e1acfdfc5..7eac7721c 100644 --- a/src/lib/web/statusRouter.ts +++ b/src/lib/web/statusRouter.ts @@ -26,7 +26,7 @@ StatusRouter.get('/temp', function (req, res) { errors.errorForbidden(res) } else { const tempid = req.query.tempid - if (!tempid) { + if (!tempid || typeof tempid !== 'string') { errors.errorForbidden(res) } else { Temp.findOne({