mirror of
https://github.com/open-webui/open-webui
synced 2025-06-10 00:17:52 +00:00
fix: Fix path leakage caused by file upload
This commit is contained in:
parent
82716f3789
commit
0dc29a220f
@ -189,7 +189,7 @@ def upload_file(
|
|||||||
log.exception(e)
|
log.exception(e)
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_400_BAD_REQUEST,
|
status_code=status.HTTP_400_BAD_REQUEST,
|
||||||
detail=ERROR_MESSAGES.DEFAULT(e),
|
detail=ERROR_MESSAGES.DEFAULT("Error uploading file"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user