From 0dc29a220f66f83cb7d64f7b99429e0fb520e51e Mon Sep 17 00:00:00 2001 From: Shirasawa <764798966@qq.com> Date: Mon, 26 May 2025 12:20:00 +0800 Subject: [PATCH] fix: Fix path leakage caused by file upload --- backend/open_webui/routers/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/routers/files.py b/backend/open_webui/routers/files.py index ad556d327..813fbb268 100644 --- a/backend/open_webui/routers/files.py +++ b/backend/open_webui/routers/files.py @@ -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"), )