mirror of
https://github.com/docusealco/docuseal
synced 2026-11-16 08:12:32 -05:00
url escape
This commit is contained in:
1 parent
1b50efe511
commit
dd790be5cb
3 files changed
+3
-3
No files matched your search
@@ -557,7 +557,7 @@ export default {
|
|||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const resp = await fetch(this.baseUrl + `/s/${this.submitterSlug}/kba/${this.field.uuid}`, {
|
const resp = await fetch(this.baseUrl + `/s/${this.submitterSlug}/kba/${encodeURIComponent(this.field.uuid)}`, {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
token: this.token,
|
token: this.token,
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async submit () {
|
async submit () {
|
||||||
if (this.sessionId) {
|
if (this.sessionId) {
|
||||||
return fetch(this.baseUrl + this.paymentEndpoint + '/' + this.sessionId, {
|
return fetch(this.baseUrl + this.paymentEndpoint + '/' + encodeURIComponent(this.sessionId), {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
...this.fetchOptions,
|
...this.fetchOptions,
|
||||||
headers: { 'Content-Type': 'application/json', ...this.fetchOptions.headers }
|
headers: { 'Content-Type': 'application/json', ...this.fetchOptions.headers }
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
start () {
|
start () {
|
||||||
return fetch(this.baseUrl + `/s/${this.submitterSlug}/identity_verification/${this.field.uuid}`, {
|
return fetch(this.baseUrl + `/s/${this.submitterSlug}/identity_verification/${encodeURIComponent(this.field.uuid)}`, {
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
redirect_url: document.location.href
|
redirect_url: document.location.href
|
||||||
|
|||||||
Reference in new issue
Block a user