From 62fea30e878b571136fd9a02dd11edee69f6e2a6 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 23 Jan 2017 22:37:46 -0700 Subject: [PATCH] browse: Sanitize file names and links in default template Thanks to Kevin Froman (@beardog108) for the responsible heads up. --- caddyhttp/browse/setup.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/caddyhttp/browse/setup.go b/caddyhttp/browse/setup.go index 19b07bd5..33b34066 100644 --- a/caddyhttp/browse/setup.go +++ b/caddyhttp/browse/setup.go @@ -101,7 +101,7 @@ func browseParse(c *caddy.Controller) ([]Config, error) { const defaultTemplate = ` - {{.Name}} + {{html .Name}}