From 006dc1792f0118552f81e17cfbe2802a3180c352 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 27 Jun 2019 13:30:41 -0600 Subject: Use html/template for escaping by default Allow HTML only with a few specific functions --- modules/caddyhttp/templates/tplcontext_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/templates/tplcontext_test.go') diff --git a/modules/caddyhttp/templates/tplcontext_test.go b/modules/caddyhttp/templates/tplcontext_test.go index 88adb5b..9ff7917 100644 --- a/modules/caddyhttp/templates/tplcontext_test.go +++ b/modules/caddyhttp/templates/tplcontext_test.go @@ -40,7 +40,7 @@ func TestMarkdown(t *testing.T) { expect: "\n", }, } { - result := context.Markdown(test.body) + result := string(context.Markdown(test.body)) if result != test.expect { t.Errorf("Test %d: expected '%s' but got '%s'", i, test.expect, result) } -- cgit v1.2.3