fix: message.py executing script (#20887)

This commit is contained in:
Shariq Ansari 2023-05-04 17:33:10 +05:30 committed by GitHub
parent 3efaee9597
commit 8759a7b41c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
import frappe
from frappe.utils import strip_html_tags
from frappe.utils.html_utils import clean_html
no_cache = 1
@ -26,9 +27,9 @@ def get_context(context):
frappe.local.response["http_status_code"] = message["http_status_code"]
if not message_context.title:
message_context.title = frappe.form_dict.title
message_context.title = clean_html(frappe.form_dict.title)
if not message_context.message:
message_context.message = frappe.form_dict.message
message_context.message = clean_html(frappe.form_dict.message)
return message_context