apply workaround for path-to-regexp (see https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j)
This commit is contained in:
parent
7780c7ae57
commit
817b9f2d08
1 changed files with 1 additions and 1 deletions
|
@ -855,7 +855,7 @@ export const serve_rendered = {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
app.get('/(:tileSize(256|512)/)?:id.json', (req, res, next) => {
|
app.get('/(:tileSize(256|512)/)?:id([^/]+).json', (req, res, next) => {
|
||||||
const item = repo[req.params.id];
|
const item = repo[req.params.id];
|
||||||
if (!item) {
|
if (!item) {
|
||||||
return res.sendStatus(404);
|
return res.sendStatus(404);
|
||||||
|
|
Loading…
Reference in a new issue