commit | 113a6f3d80b95fd249dbe95224f0be197d533c86 | [log] [tgz] |
---|---|---|
author | Suraj Shetty <surajshetty3416@gmail.com> | Tue May 11 10:59:16 2021 +0530 |
committer | Suraj Shetty <surajshetty3416@gmail.com> | Fri May 28 09:10:34 2021 +0530 |
tree | 60168e7113713c5a0d8cb99306119d28db80366b | |
parent | 77f2686142568b12dcbea50db03928f6b8ec5673 [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)())