update
This commit is contained in:
parent
252673a1d9
commit
c1d50b4c7a
@ -106,7 +106,8 @@ app.delete(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Validate filename format (basic security check)
|
// Validate filename format (basic security check)
|
||||||
if (!filename.test(/^F_S\d+_T\d+_RV\d+\.md$/)) {
|
const pattern = /^F_S\d+_T\d+_RV\d+\.md$/;
|
||||||
|
if (!pattern.test(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