浏览代码

Merge pull request #14328 from ShirasawaSama/fix_path_leakage_caused_by_file_upload

fix: Fix path leakage caused by file upload
Tim Jaeryang Baek 4 月之前
父节点
当前提交
9de92687f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/routers/files.py

+ 1 - 1
backend/open_webui/routers/files.py

@@ -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"),
         )
         )