validate chatflow uuid
This commit is contained in:
parent
5c47543850
commit
b812fbc00f
|
|
@ -747,8 +747,8 @@ export const streamStorageFile = async (
|
|||
}
|
||||
|
||||
// Check for path traversal attempts
|
||||
if (isPathTraversal(chatflowId) || isPathTraversal(chatId)) {
|
||||
throw new Error('Invalid path characters detected in chatflowId or chatId')
|
||||
if (isPathTraversal(chatflowId)) {
|
||||
throw new Error('Invalid path characters detected in chatflowId')
|
||||
}
|
||||
|
||||
const storageType = getStorageType()
|
||||
|
|
|
|||
Loading…
Reference in New Issue