maziggy преди 4 месеца
родител
ревизия
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';
     let filename = 'bambuddy-backup.zip';
     if (contentDisposition) {
     if (contentDisposition) {
       const match = contentDisposition.match(/filename=([^;]+)/);
       const match = contentDisposition.match(/filename=([^;]+)/);
-      if (match) filename = match[1].trim();
+      if (match) filename = match[1].trim().replace(/^"(.*)"$/, '$1');
     }
     }
 
 
     const blob = await response.blob();
     const blob = await response.blob();