Merge pull request #107 from QortalSeth/develop

Makes filenames safe when saving file.
This commit is contained in:
nico.benaz
2025-07-27 13:32:07 +02:00
committed by GitHub

View File

@@ -2456,7 +2456,7 @@ export const saveFile = async (data, sender, isFromExtension, snackMethods) => {
locationUrl + `?attachment=true&attachmentFilename=${data?.filename}`
);
a.href = endpoint;
a.download = data.filename;
a.download = encodeURIComponent(data.filename);
document.body.appendChild(a);
a.click();
a.remove();