what's one more cheap hack

This commit is contained in:
Ted Unangst 2019-09-16 22:02:42 -04:00
parent 767b34b71c
commit 42ee3becde
1 changed files with 1 additions and 0 deletions

1
web.go
View File

@ -526,6 +526,7 @@ func showhonker(w http.ResponseWriter, r *http.Request) {
name = html.EscapeString(name) name = html.EscapeString(name)
msg := fmt.Sprintf(`honks by honker: <a href="%s" ref="noreferrer">%s</a>`, name, name) msg := fmt.Sprintf(`honks by honker: <a href="%s" ref="noreferrer">%s</a>`, name, name)
templinfo := getInfo(r) templinfo := getInfo(r)
templinfo["PageName"] = "honker"
templinfo["ServerMessage"] = template.HTML(msg) templinfo["ServerMessage"] = template.HTML(msg)
templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r) templinfo["HonkCSRF"] = login.GetCSRF("honkhonk", r)
honkpage(w, u, honks, templinfo) honkpage(w, u, honks, templinfo)