Rebuild JS as well.

This commit is contained in:
James Cole 2024-01-31 07:35:43 +01:00
parent bafe2ece8c
commit bbd4d7a8ef
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
3 changed files with 22 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -783,10 +783,10 @@ export default {
this.setDefaultErrors();
// do message if update or new:
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 = '';
} 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 = '';
}
} else {
@ -917,6 +917,24 @@ export default {
},
escapeHtml: function (string) {
let entityMap = {
'&': '&',
'<': '&lt;',
'>': '&gt;',
'"': '&quot;',
"'": '&#39;',
'/': '&#x2F;',
'`': '&#x60;',
'=': '&#x3D;'
};
return String(string).replace(/[&<>"'`=\/]/g, function fromEntityMap(s) {
return entityMap[s];
});
},
addTransaction: function (e) {