Merge pull request #6863 from firefly-iii/fix-improper-escaoe

Fix improper escape.
This commit is contained in:
James Cole 2023-01-15 17:24:37 +01:00 committed by GitHub
commit e7a1ad23f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -529,7 +529,7 @@ export default {
// if count is 0, send user onwards. // if count is 0, send user onwards.
if (this.createAnother) { if (this.createAnother) {
// do message: // do message:
this.success_message = this.$t('firefly.transaction_stored_link', {ID: groupId, title: title}); this.success_message = this.$t('firefly.transaction_stored_link', {ID: groupId, title: $(title).text()});
this.error_message = ''; this.error_message = '';
if (this.resetFormAfter) { if (this.resetFormAfter) {
// also clear form. // also clear form.

View File

@ -140,7 +140,7 @@ export default {
// post! // post!
axios.post('./api/v1/webhooks', data).then((response) => { axios.post('./api/v1/webhooks', data).then((response) => {
this.success_message = response.data.message; this.success_message = $.text(response.data.message);
// console.log('Will now go to redirectUser()'); // console.log('Will now go to redirectUser()');
let webhookId = response.data.data.id; let webhookId = response.data.data.id;
window.location.href = window.previousUrl + '?webhook_id=' + webhookId + '&message=created'; window.location.href = window.previousUrl + '?webhook_id=' + webhookId + '&message=created';

View File

@ -187,7 +187,7 @@ export default {
// post! // post!
axios.put('./api/v1/webhooks/' + this.id, data).then((response) => { axios.put('./api/v1/webhooks/' + this.id, data).then((response) => {
this.success_message = response.data.message; this.success_message = $.text(response.data.message);
// console.log('Will now go to redirectUser()'); // console.log('Will now go to redirectUser()');
let webhookId = response.data.data.id; let webhookId = response.data.data.id;
window.location.href = window.previousUrl + '?webhook_id=' + webhookId + '&message=updated'; window.location.href = window.previousUrl + '?webhook_id=' + webhookId + '&message=updated';

View File

@ -290,7 +290,7 @@ export default {
let button = $('#triggerButton'); let button = $('#triggerButton');
button.prop('disabled', true).addClass('disabled'); button.prop('disabled', true).addClass('disabled');
this.success_message = this.$t('firefly.webhook_was_triggered'); this.success_message = $.text(this.$t('firefly.webhook_was_triggered'));
// TODO actually trigger the webhook. // TODO actually trigger the webhook.
axios.post('./api/v1/webhooks/' + this.id + '/trigger-transaction/' + journalId, {}); axios.post('./api/v1/webhooks/' + this.id + '/trigger-transaction/' + journalId, {});
button.prop('disabled', false).removeClass('disabled'); button.prop('disabled', false).removeClass('disabled');