mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-07-29 05:01:24 +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}`
|
locationUrl + `?attachment=true&attachmentFilename=${data?.filename}`
|
||||||
);
|
);
|
||||||
a.href = endpoint;
|
a.href = endpoint;
|
||||||
a.download = data.filename;
|
a.download = encodeURIComponent(data.filename);
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
a.remove();
|
a.remove();
|
||||||
|
Reference in New Issue
Block a user