mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Rebuild JS as well.
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -783,10 +783,10 @@ export default {
|
|||||||
this.setDefaultErrors();
|
this.setDefaultErrors();
|
||||||
// do message if update or new:
|
// do message if update or new:
|
||||||
if (this.storeAsNew) {
|
if (this.storeAsNew) {
|
||||||
this.success_message = this.$t('firefly.transaction_new_stored_link', {ID: groupId, title: title});
|
this.success_message = this.$t('firefly.transaction_new_stored_link', {ID: groupId, title: this.escapeHtml(title)});
|
||||||
this.error_message = '';
|
this.error_message = '';
|
||||||
} else {
|
} else {
|
||||||
this.success_message = this.$t('firefly.transaction_updated_link', {ID: groupId, title: title});
|
this.success_message = this.$t('firefly.transaction_updated_link', {ID: groupId, title: this.escapeHtml(title)});
|
||||||
this.error_message = '';
|
this.error_message = '';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -917,6 +917,24 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
escapeHtml: function (string) {
|
||||||
|
|
||||||
|
let entityMap = {
|
||||||
|
'&': '&',
|
||||||
|
'<': '<',
|
||||||
|
'>': '>',
|
||||||
|
'"': '"',
|
||||||
|
"'": ''',
|
||||||
|
'/': '/',
|
||||||
|
'`': '`',
|
||||||
|
'=': '='
|
||||||
|
};
|
||||||
|
|
||||||
|
return String(string).replace(/[&<>"'`=\/]/g, function fromEntityMap(s) {
|
||||||
|
return entityMap[s];
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
addTransaction: function (e) {
|
addTransaction: function (e) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user