Skip to content

Commit

Permalink
Merge pull request #6863 from firefly-iii/fix-improper-escaoe
Browse files Browse the repository at this point in the history
Fix improper escape.
  • Loading branch information
JC5 committed Jan 15, 2023
2 parents f2251d7 + afd3fd9 commit e7a1ad2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -529,7 +529,7 @@ export default {
// if count is 0, send user onwards.
if (this.createAnother) {
// 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 = '';
if (this.resetFormAfter) {
// also clear form.
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/components/webhooks/Create.vue
Expand Up @@ -140,7 +140,7 @@ export default {
// post!
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()');
let webhookId = response.data.data.id;
window.location.href = window.previousUrl + '?webhook_id=' + webhookId + '&message=created';
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/components/webhooks/Edit.vue
Expand Up @@ -187,7 +187,7 @@ export default {
// post!
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()');
let webhookId = response.data.data.id;
window.location.href = window.previousUrl + '?webhook_id=' + webhookId + '&message=updated';
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/components/webhooks/Show.vue
Expand Up @@ -290,7 +290,7 @@ export default {
let button = $('#triggerButton');
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.
axios.post('./api/v1/webhooks/' + this.id + '/trigger-transaction/' + journalId, {});
button.prop('disabled', false).removeClass('disabled');
Expand Down

0 comments on commit e7a1ad2

Please sign in to comment.