url escape

This commit is contained in:
Pete Matsyburka committed 2026-11-14 14:49:39 +02:00
1 parent 1b50efe511
commit dd790be5cb
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -557,7 +557,7 @@ export default {
}, {})
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',
body: JSON.stringify({
token: this.token,
@@ -253,7 +253,7 @@ export default {
},
async submit () {
if (this.sessionId) {
return fetch(this.baseUrl + this.paymentEndpoint + '/' + this.sessionId, {
return fetch(this.baseUrl + this.paymentEndpoint + '/' + encodeURIComponent(this.sessionId), {
method: 'PUT',
...this.fetchOptions,
headers: { 'Content-Type': 'application/json', ...this.fetchOptions.headers }
@@ -162,7 +162,7 @@ export default {
},
methods: {
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',
body: JSON.stringify({
redirect_url: document.location.href