sum7/warehost
sum7
/
warehost
Archived
1
0
Fork 0

warehost-web current menu

This commit is contained in:
Martin Geno 2016-11-21 13:57:15 +01:00
parent 0d2556d491
commit bca651eece
1 changed files with 1 additions and 0 deletions

View File

@ -77,6 +77,7 @@ func handlerfunc(w http.ResponseWriter, r *http.Request) {
menus = web.BuildMenuTree(menus)
page := &web.Page{WebsiteID: website.ID, MenuID: menu.ID}
dbconnection.Where(page).Find(page)
page.Menu = menu
unsafe := blackfriday.MarkdownCommon([]byte(page.Content))
page.Content = string(bluemonday.UGCPolicy().SanitizeBytes(unsafe))