We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5090e02 commit 0fed34aCopy full SHA for 0fed34a
src/server/routers/ingest.py
@@ -114,7 +114,7 @@ async def download_ingest(ingest_id: str) -> FileResponse:
114
"""
115
# Normalize and validate the directory path
116
directory = (TMP_BASE_PATH / ingest_id).resolve()
117
- if not str(directory).startswith(str(TMP_BASE_PATH)):
+ if not str(directory).startswith(str(TMP_BASE_PATH.resolve())):
118
raise HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail=f"Invalid ingest ID: {ingest_id!r}")
119
120
if not directory.is_dir():
0 commit comments