Skip to content

Commit

Permalink
[minor] Escape special characters (#11855)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored and nabinhait committed Dec 6, 2017
1 parent 6a418f2 commit 1b16bca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/setup/doctype/item_group/item_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_context(self, context):

@frappe.whitelist(allow_guest=True)
def get_product_list_for_group(product_group=None, start=0, limit=10, search=None):
child_groups = ", ".join(['"' + i[0] + '"' for i in get_child_groups(product_group)])
child_groups = ", ".join(['"' + frappe.db.escape(i[0]) + '"' for i in get_child_groups(product_group)])

# base query
query = """select name, item_name, item_code, route, image, website_image, thumbnail, item_group,
Expand Down

0 comments on commit 1b16bca

Please sign in to comment.