commit | b76ebb3f4b0b4f4a975aff0fccfbc0d5c4c81e1e | [log] [tgz] |
---|---|---|
author | Suraj Shetty <surajshetty3416@gmail.com> | Tue May 11 10:59:16 2021 +0530 |
committer | Suraj Shetty <surajshetty3416@gmail.com> | Tue May 11 10:59:16 2021 +0530 |
tree | 78dba978815d5f93da1afa19df9bf92a35be19df | |
parent | 042118aafdd7e018d0ddedefb90ce66c30753634 [diff] |
fix: Use frappe.safe_eval instead of eval
diff --git a/erpnext/setup/doctype/email_digest/email_digest.py b/erpnext/setup/doctype/email_digest/email_digest.py index 5db54ee..340d89b 100644 --- a/erpnext/setup/doctype/email_digest/email_digest.py +++ b/erpnext/setup/doctype/email_digest/email_digest.py
@@ -249,7 +249,7 @@ card = cache.get(cache_key) if card: - card = eval(card) + card = frappe.safe_eval(card) else: card = frappe._dict(getattr(self, "get_" + key)())