Skip to content

Firefly III: a personal finances manager

Fix improper escape.

James Coleafd3fd9f8833
diff --git a/resources/assets/js/components/transactions/CreateTransaction.vue b/resources/assets/js/components/transactions/CreateTransaction.vue
index 87b51f93d0..4f085f42e2 100644
--- a/resources/assets/js/components/transactions/CreateTransaction.vue
+++ b/resources/assets/js/components/transactions/CreateTransaction.vue
@@ -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.
diff --git a/resources/assets/js/components/webhooks/Create.vue b/resources/assets/js/components/webhooks/Create.vue
index cdcd3ac7e7..155a8e3f8e 100644
--- a/resources/assets/js/components/webhooks/Create.vue
+++ b/resources/assets/js/components/webhooks/Create.vue
@@ -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';
diff --git a/resources/assets/js/components/webhooks/Edit.vue b/resources/assets/js/components/webhooks/Edit.vue
index 424fd635d7..2aa8fbc69d 100644
--- a/resources/assets/js/components/webhooks/Edit.vue
+++ b/resources/assets/js/components/webhooks/Edit.vue
@@ -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';
diff --git a/resources/assets/js/components/webhooks/Show.vue b/resources/assets/js/components/webhooks/Show.vue
index e23c80fea8..3f28499308 100644
--- a/resources/assets/js/components/webhooks/Show.vue
+++ b/resources/assets/js/components/webhooks/Show.vue
@@ -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');