Merge pull request #14328 from ShirasawaSama/fix_path_leakage_caused_by_file_upload
Release / release (push) Waiting to run Details
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run Details
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions Details
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run Details
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run Details
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run Details
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run Details
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run Details
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run Details
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions Details
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions Details
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions Details
Python CI / Format Backend (3.11.x) (push) Waiting to run Details
Python CI / Format Backend (3.12.x) (push) Waiting to run Details
Release to PyPI / release (push) Waiting to run Details

fix: Fix path leakage caused by file upload
This commit is contained in:
Tim Jaeryang Baek 2025-05-26 12:57:21 +04:00 committed by GitHub
commit 9de92687f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ def upload_file(
log.exception(e)
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST,
detail=ERROR_MESSAGES.DEFAULT(e),
detail=ERROR_MESSAGES.DEFAULT("Error uploading file"),
)