mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-28 12:41:23 +00:00
Merge pull request #107 from QortalSeth/develop
Makes filenames safe when saving file.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user