mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 08:53:48 +01:00
[Server] Fix bug
This commit is contained in:
parent
66f55a2b1c
commit
e4675609d9
@ -29,7 +29,7 @@ app.use(compression());
|
||||
app.use((req, res, next) => {
|
||||
res.header('X-Frame-Options', 'DENY');
|
||||
|
||||
res.locals.user = (req.headers['cookie'].match(/i=(!\w+)/) || [null, null])[1];
|
||||
res.locals.user = ((req.headers['cookie'] || '').match(/i=(!\w+)/) || [null, null])[1];
|
||||
|
||||
next();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user