update
This commit is contained in:
parent
e5ad85da82
commit
b702eb0bd6
@ -107,6 +107,7 @@ app.delete(
|
|||||||
|
|
||||||
// Validate filename format (basic security check)
|
// Validate filename format (basic security check)
|
||||||
if (!filename.match(/^F_S\d+T\d+_RV\d+\.md$/)) {
|
if (!filename.match(/^F_S\d+T\d+_RV\d+\.md$/)) {
|
||||||
|
console.log({ filename });
|
||||||
return res.status(400).json({ error: "Invalid filename format" });
|
return res.status(400).json({ error: "Invalid filename format" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user