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