Hopefully fixed Windows support

This commit is contained in:
Seednode 2022-10-18 17:30:04 -05:00
parent b0ebf1177b
commit 41a7546334
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import (
"github.com/spf13/cobra"
)
var Version = "0.13.3"
var Version = "0.13.4"
func init() {
rootCmd.AddCommand(versionCmd)

View File

@ -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)