Skip to content

Commit

Permalink
[Luzifer#35] Encode pipe in secret URL by default
Browse files Browse the repository at this point in the history
fixes Luzifer#35

Signed-off-by: Knut Ahlers <knut@ahlers.me>
  • Loading branch information
Luzifer committed Sep 6, 2021
1 parent c36cc34 commit 78a27f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/app.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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('#')
},
},
Expand Down

0 comments on commit 78a27f3

Please sign in to comment.