Fix: Encode data for download

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 <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-08-25 13:46:32 +02:00
parent a837296b2f
commit f1fc1a7814
No known key found for this signature in database
GPG Key ID: D91C3E91E4CAD6F5

View File

@ -255,7 +255,7 @@
<i class="fas fa-fw fa-clipboard" /> <i class="fas fa-fw fa-clipboard" />
</b-button> </b-button>
<b-button <b-button
:href="`data:text/plain;charset=UTF-8,${secret}`" :href="`data:text/plain;charset=UTF-8,${encodeURIComponent(secret)}`"
download download
title="Download Secret as Text File" title="Download Secret as Text File"
> >