[hotfix] encode title and content field for global search (#3881)
This commit is contained in:
parent
6404c6e167
commit
6298446be8
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue