From e2bfbacfbc5d4035f6f95ba2b6d76815b587c811 Mon Sep 17 00:00:00 2001 From: vincywindy <30209724+vincywindy@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:53:04 +0800 Subject: [PATCH] Update rom.py to Fix Filename error --- backend/endpoints/rom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/endpoints/rom.py b/backend/endpoints/rom.py index 9f646e2df..96136448b 100644 --- a/backend/endpoints/rom.py +++ b/backend/endpoints/rom.py @@ -209,7 +209,7 @@ async def head_rom_content( media_type="application/octet-stream", headers={ "Content-Disposition": f'attachment; filename="{quote(files_to_check[0])}"', - "X-Accel-Redirect": f"/library/{rom.full_path}/{files_to_check[0]}", + "X-Accel-Redirect": f"/library/{quote(rom.full_path)}/{quote(files_to_check[0])}", }, )