Skip to content

Commit 5090e02

Browse files
Update src/server/routers/ingest.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 62634b3 commit 5090e02

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/server/routers/ingest.py

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

0 commit comments

Comments
 (0)