fix: message.py executing script (#20887)
This commit is contained in:
parent
3efaee9597
commit
8759a7b41c
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue