fix: Use frappe.safe_eval instead of eval
This commit is contained in:
parent
77f2686142
commit
113a6f3d80
@ -249,7 +249,7 @@ class EmailDigest(Document):
|
||||
card = cache.get(cache_key)
|
||||
|
||||
if card:
|
||||
card = eval(card)
|
||||
card = frappe.safe_eval(card)
|
||||
|
||||
else:
|
||||
card = frappe._dict(getattr(self, "get_" + key)())
|
||||
|
Loading…
x
Reference in New Issue
Block a user