From d9d6fb656a566579b3bfd27dd3ef8b1984a90830 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 8 Jul 2018 08:29:45 +0100 Subject: [PATCH] fix: remove default rules (#455) Former-commit-id: 61306205aa8bbdbd8248fb2cc1b1f2b8d1c9a47d [formerly 01601ea4acb9479b6b1b8f26acf89bec97876f42] [formerly c619c7135b3aa54367c3a9cb857eb647f6f6657a [formerly ec2e8d1f544d0c6ecc8f478491711c490a1dacd6]] Former-commit-id: 51e1335b9720aa2825b55dbedabe5040f2c98e85 [formerly 9bdceac017d39acc8f7fb5abebe23c842c646f48] Former-commit-id: b003d0e8e6b0410c31d80e60a50ba5fa70232304 --- caddy/parser/parser.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/caddy/parser/parser.go b/caddy/parser/parser.go index 476c20d5..e238adfb 100644 --- a/caddy/parser/parser.go +++ b/caddy/parser/parser.go @@ -38,11 +38,7 @@ func Parse(c *caddy.Controller, plugin string) ([]*filebrowser.FileBrowser, erro Commands: []string{"git", "svn", "hg"}, CSS: "", ViewMode: "mosaic", - Rules: []*filebrowser.Rule{{ - Regex: true, - Allow: false, - Regexp: &filebrowser.Regexp{Raw: "\\/\\..+"}, - }}, + Rules: []*filebrowser.Rule{}, } baseURL := "/"