mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-03 16:38:50 -04: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)
|
errors.errorForbidden(res)
|
||||||
} else {
|
} else {
|
||||||
const tempid = req.query.tempid
|
const tempid = req.query.tempid
|
||||||
if (!tempid) {
|
if (!tempid || typeof tempid !== 'string') {
|
||||||
errors.errorForbidden(res)
|
errors.errorForbidden(res)
|
||||||
} else {
|
} else {
|
||||||
Temp.findOne({
|
Temp.findOne({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue