Revert "fix(Request): Sanitize Error Report Email Message" (#11777)

This commit is contained in:
Suraj Shetty 2020-10-25 11:01:37 +05:30 committed by GitHub
parent 3c3913d757
commit 259d37584b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@ def make(doctype=None, name=None, content=None, subject=None, sent_or_received =
comm = frappe.get_doc({
"doctype":"Communication",
"subject": subject,
"content": frappe.utils.sanitize_html(content),
"content": content,
"sender": sender,
"sender_full_name":sender_full_name,
"recipients": recipients,

View file

@ -443,7 +443,7 @@ frappe.request.report_error = function(xhr, request_opts) {
var communication_composer = new frappe.views.CommunicationComposer({
subject: 'Error Report [' + frappe.datetime.nowdate() + ']',
recipients: error_report_email,
message: frappe.utils.xss_sanitise(error_report_message),
message: error_report_message,
doc: {
doctype: "User",
name: frappe.session.user