瀏覽代碼

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

version-14
Makarand Bauskar 8 年之前
committed by GitHub
父節點
當前提交
6298446be8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      frappe/website/router.py

+ 2
- 2
frappe/website/router.py 查看文件

@@ -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…
取消
儲存