瀏覽代碼

fix: Avoid style leak from email or comment

version-14
Suraj Shetty 4 年之前
父節點
當前提交
8ae1147abc
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      frappe/public/js/frappe/form/footer/form_timeline.js

+ 2
- 0
frappe/public/js/frappe/form/footer/form_timeline.js 查看文件

@@ -190,6 +190,7 @@ class FormTimeline extends BaseTimeline {
}
doc.owner = doc.sender;
doc.user_full_name = doc.sender_full_name;
doc.content = frappe.dom.remove_script_and_style(doc.content);
let communication_content = $(frappe.render_template('timeline_message_box', { doc }));
if (allow_reply) {
this.setup_reply(communication_content, doc);
@@ -248,6 +249,7 @@ class FormTimeline extends BaseTimeline {
}

get_comment_timeline_content(doc) {
doc.content = frappe.dom.remove_script_and_style(doc.content);
const comment_content = $(frappe.render_template('timeline_message_box', { doc }));
this.setup_comment_actions(comment_content, doc);
return comment_content;


Loading…
取消
儲存