Selaa lähdekoodia

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

version-14
Makarand Bauskar 8 vuotta sitten
committed by GitHub
vanhempi
commit
6298446be8
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      frappe/website/router.py

+ 2
- 2
frappe/website/router.py Näytä tiedosto

@@ -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:


Ladataan…
Peruuta
Tallenna