Commit 1de27beb authored by Jacob Vosmaer's avatar Jacob Vosmaer

Fix path traversal regex

We want literal periods, not arbitraty characters. :(
parent 06e27806
...@@ -42,7 +42,7 @@ type gitEnv struct { ...@@ -42,7 +42,7 @@ type gitEnv struct {
var Version string var Version string
var httpClient = &http.Client{} var httpClient = &http.Client{}
var pathTraversal = regexp.MustCompile(`/../`) var pathTraversal = regexp.MustCompile(`/\.\./`)
// Command-line options // Command-line options
var repoRoot string var repoRoot string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment