fix(patch): refactor social login keys
escaped special characters in query Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
651df31590
commit
dc983f49c6
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ def insert_user_social_login(user, modified_by, provider, idx, userid=None, user
|
|||
VALUES ({values})
|
||||
""".format(
|
||||
source_cols = "`" + "`, `".join(source_cols) + "`",
|
||||
values= "'" + "', '".join(values) + "'"
|
||||
values= "'" + "', '".join([frappe.db.escape(d) for d in values]) + "'"
|
||||
)
|
||||
|
||||
frappe.db.sql(query)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue