diff --git a/cmd/version.go b/cmd/version.go index eb13fd5..4caf63f 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -10,7 +10,7 @@ import ( "github.com/spf13/cobra" ) -var Version = "0.13.3" +var Version = "0.13.4" func init() { rootCmd.AddCommand(versionCmd) diff --git a/cmd/web.go b/cmd/web.go index 929eeab..3bbb324 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -86,7 +86,7 @@ func serveStaticFile(w http.ResponseWriter, r *http.Request, paths []string) err return err } - filePath := strings.TrimPrefix(prefixedFilePath, PREFIX) + filePath := filepath.Clean(strings.TrimPrefix(prefixedFilePath, PREFIX)) if !pathIsValid(filePath, paths) { http.NotFound(w, r)