validate chatflow uuid

This commit is contained in:
Henry 2025-06-25 14:21:53 +01:00
parent 5c47543850
commit b812fbc00f
1 changed files with 2 additions and 2 deletions

View File

@ -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()