[hotfix] encode title and content field for global search (#3881)

This commit is contained in:
Makarand Bauskar 2017-08-09 11:01:07 +05:30 committed by GitHub
parent 6404c6e167
commit 6298446be8

View file

@ -349,9 +349,9 @@ def sync_global_search():
frappe.flags.update_global_search.append(
dict(doctype='Static Web Page',
name=route,
content=frappe.text_type(text),
content=text_type(text),
published=1,
title=soup.title.string,
title=text_type(soup.title.string),
route=route))
except Exception: