[#35] Encode pipe in secret URL by default

fixes #35

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-06 22:31:25 +02:00
parent c36cc34805
commit 78a27f304f
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 8 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -177,7 +177,13 @@ export default {
computed: {
secretUrl() {
return `${window.location.href}#${this.secretId}|${this.securePassword}`
return [
window.location.href,
encodeURIComponent([
this.secretId,
this.securePassword,
].join('|')),
].join('#')
},
},