diff options
| author | Martin Trigaux <mat@odoo.com> | 2020-02-04 08:28:32 +0000 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2020-02-04 10:33:19 +0000 |
| commit | d11ee7801986e46aa7f57eb94f6566ce70b468f0 (patch) | |
| tree | ec8427f7db00d46ca12e8476c877bdb595c00a0b /addons/base_setup/static/src/xml | |
| parent | d64bf7e6cd610a4431dedc4f230bc7b82d98bc24 (diff) | |
[IMP] bus: unescape notification message
The title of notification is the author name escaped (for security
reasons).
if (message.hasAuthor()) {
title = _.escape(message.getAuthorName());
}
When forwarded to the system notification, it does not need to be
escaped though, as the system notification is not HTML based.
Without this patch, a user named "Bob's friend" sending a message was
creating a notification with the title "Bob's friend"
Unescaping the notification body just in case but the HTML of the body
in a mail.messages should be stripped by _notifyIncomingMessage.
Unescaping will just ignored unescaped characters and should do
nothing on messages not escaped.
Fixes odoo/odoo#24846
closes odoo/odoo#44550
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/base_setup/static/src/xml')
0 files changed, 0 insertions, 0 deletions
