escape the email account name (#4598)
This commit is contained in:
parent
24cc7939c8
commit
436ce11c60
1 changed files with 1 additions and 1 deletions
|
|
@ -597,7 +597,7 @@ class EmailAccount(Document):
|
|||
|
||||
flags = frappe.db.sql("""select name, communication, uid, action from
|
||||
`tabEmail Flag Queue` where is_completed=0 and email_account='{email_account}'
|
||||
""".format(email_account=self.name), as_dict=True)
|
||||
""".format(email_account=frappe.db.escape(self.name)), as_dict=True)
|
||||
|
||||
uid_list = { flag.get("uid", None): flag.get("action", "Read") for flag in flags }
|
||||
if flags and uid_list:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue