Skip to content

Commit da9fd81

Browse files
fix: multi-file uploads used incorrect validation
1 parent 05ae747 commit da9fd81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/webhook/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ func processMultipleFilesForUser(jobID string, form map[string]string, userID uu
874874

875875
// Validate all file paths to prevent path injection attacks
876876
for i, filePath := range filePaths {
877-
if err := security.ValidateFilePath(filePath); err != nil {
877+
if err := security.ValidateExistingFilePath(filePath); err != nil {
878878
return "backend.status.internal_error", nil, fmt.Errorf("invalid file path at index %d: %w", i, err)
879879
}
880880
}

0 commit comments

Comments
 (0)