From 10c51a2189003bdb299991fcdc89ffb8c5f5e84f Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Mon, 21 Nov 2016 21:14:01 +0100 Subject: [PATCH] warehost-web unsafe --- cmd/warehost-web/handler.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/warehost-web/handler.go b/cmd/warehost-web/handler.go index b6f4599..f2f0326 100644 --- a/cmd/warehost-web/handler.go +++ b/cmd/warehost-web/handler.go @@ -6,7 +6,7 @@ import ( "os" "text/template" - "github.com/microcosm-cc/bluemonday" + //"github.com/microcosm-cc/bluemonday" "github.com/russross/blackfriday" liblog "dev.sum7.eu/sum7/warehost/lib/log" @@ -80,7 +80,8 @@ func handlerfunc(w http.ResponseWriter, r *http.Request) { page.Menu = menu unsafe := blackfriday.MarkdownCommon([]byte(page.Content)) - page.Content = string(bluemonday.UGCPolicy().SanitizeBytes(unsafe)) + //page.Content = string(bluemonday.UGCPolicy().SanitizeBytes(unsafe)) + page.Content = string(unsafe) i := TemplateInfo{ Website: website, Host: host,