mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-30 23:01:17 +00:00
commit
370916e951
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue