Skip to content

Commit 0fed34a

Browse files
Update src/server/routers/ingest.py
Co-authored-by: Copilot <[email protected]>
1 parent 5090e02 commit 0fed34a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/routers/ingest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ async def download_ingest(ingest_id: str) -> FileResponse:
114114
"""
115115
# Normalize and validate the directory path
116116
directory = (TMP_BASE_PATH / ingest_id).resolve()
117-
if not str(directory).startswith(str(TMP_BASE_PATH)):
117+
if not str(directory).startswith(str(TMP_BASE_PATH.resolve())):
118118
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=f"Invalid ingest ID: {ingest_id!r}")
119119

120120
if not directory.is_dir():

0 commit comments

Comments
 (0)