Skip to content

Commit

Permalink
Fix: Encode data for download
Browse files Browse the repository at this point in the history
in order to have `#` not break the download as being interpreted as URL
hash and therefore ending the data to download

Signed-off-by: Knut Ahlers <[email protected]>
  • Loading branch information
Luzifer committed Aug 25, 2023
1 parent a837296 commit f1fc1a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@
<i class="fas fa-fw fa-clipboard" />
</b-button>
<b-button
:href="`data:text/plain;charset=UTF-8,${secret}`"
:href="`data:text/plain;charset=UTF-8,${encodeURIComponent(secret)}`"
download
title="Download Secret as Text File"
>
Expand Down

0 comments on commit f1fc1a7

Please sign in to comment.