From 43c1a9b50254d32320910f015b67465a05a5723c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 10 Jun 2015 18:23:17 +0530 Subject: [PATCH] [fix] Quote url for item image in product listing page --- erpnext/setup/doctype/item_group/item_group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/setup/doctype/item_group/item_group.py b/erpnext/setup/doctype/item_group/item_group.py index 831095d652..279ff0a264 100644 --- a/erpnext/setup/doctype/item_group/item_group.py +++ b/erpnext/setup/doctype/item_group/item_group.py @@ -3,7 +3,7 @@ from __future__ import unicode_literals import frappe - +import urllib from frappe.utils.nestedset import NestedSet from frappe.website.website_generator import WebsiteGenerator from frappe.website.render import clear_cache @@ -91,7 +91,7 @@ def get_item_for_list_in_html(context): # add missing absolute link in files # user may forget it during upload if (context.get("website_image") or "").startswith("files/"): - context["website_image"] = "/" + context["website_image"] + context["website_image"] = "/" + urllib.quote(context["website_image"]) return frappe.get_template("templates/includes/product_in_grid.html").render(context) def get_group_item_count(item_group):