mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Rebuild JS as well.
This commit is contained in:
		| @@ -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 = { | ||||
|                 '&': '&', | ||||
|                 '<': '<', | ||||
|                 '>': '>', | ||||
|                 '"': '"', | ||||
|                 "'": ''', | ||||
|                 '/': '/', | ||||
|                 '`': '`', | ||||
|                 '=': '=' | ||||
|             }; | ||||
|  | ||||
|             return String(string).replace(/[&<>"'`=\/]/g, function fromEntityMap(s) { | ||||
|                 return entityMap[s]; | ||||
|             }); | ||||
|  | ||||
|         }, | ||||
|  | ||||
|         addTransaction: function (e) { | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user