Fix: enforce image fallback and remove fileLimiter from uploads routes
This commit is contained in:
@@ -878,7 +878,7 @@ app.get('/uploads/thumb/:name', async (req, res) => {
|
||||
return sendImageThumb(res, name);
|
||||
});
|
||||
|
||||
app.get('/uploads/.originals/:name', fileLimiter, async (req, res) => {
|
||||
app.get('/uploads/.originals/:name', async (req, res) => {
|
||||
const name = req.params.name;
|
||||
if (!/^[A-Za-z0-9._-]+$/.test(name)) return res.status(400).end();
|
||||
return sendImageThumb(res, `.originals/${name}`);
|
||||
|
||||
Reference in New Issue
Block a user