Selaa lähdekoodia

fix: Fix path leakage caused by file upload

Shirasawa 4 kuukautta sitten
vanhempi
commit
0dc29a220f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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)
         raise HTTPException(
             status_code=status.HTTP_400_BAD_REQUEST,
-            detail=ERROR_MESSAGES.DEFAULT(e),
+            detail=ERROR_MESSAGES.DEFAULT("Error uploading file"),
         )