[FIX] web: remove formating from event title

When copy-pasting text from rich text, the content may contain
unwanted formating instructions. Unsure it's escaped to avoid
propagating the content.

X-original-commit: 42f596a5b50e530fd5dc3f8c2939bc5b4e5921af
This commit is contained in:
Martin Trigaux
2021-02-11 14:26:10 +00:00
parent 87334736d4
commit 284daf7f68
@@ -398,7 +398,7 @@ var CalendarController = AbstractController.extend({
res_model: self.modelName,
res_id: id || null,
context: event.context || self.context,
title: _t("Open: ") + event.data.title,
title: _t("Open: ") + _.escape(event.data.title),
on_saved: function () {
if (event.data.on_save) {
event.data.on_save();