maziggy 4 месяцев назад
Родитель
Сommit
2366a1a0b3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      frontend/src/api/client.ts

+ 1 - 1
frontend/src/api/client.ts

@@ -3606,7 +3606,7 @@ export const api = {
     let filename = 'bambuddy-backup.zip';
     if (contentDisposition) {
       const match = contentDisposition.match(/filename=([^;]+)/);
-      if (match) filename = match[1].trim();
+      if (match) filename = match[1].trim().replace(/^"(.*)"$/, '$1');
     }
 
     const blob = await response.blob();