mirror of
https://github.com/Luzifer/ots.git
synced 2024-12-24 06:39:36 -05:00
[#35] Encode pipe in secret URL by default
fixes #35 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
c36cc34805
commit
78a27f304f
File diff suppressed because one or more lines are too long
@ -177,7 +177,13 @@ export default {
|
|||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
secretUrl() {
|
secretUrl() {
|
||||||
return `${window.location.href}#${this.secretId}|${this.securePassword}`
|
return [
|
||||||
|
window.location.href,
|
||||||
|
encodeURIComponent([
|
||||||
|
this.secretId,
|
||||||
|
this.securePassword,
|
||||||
|
].join('|')),
|
||||||
|
].join('#')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user