Skip to content

Commit

Permalink
fix(cli-options): fix handling empty line files
Browse files Browse the repository at this point in the history
  • Loading branch information
minight committed Apr 11, 2021
1 parent 0a0184b commit 50ac411
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/scan/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@ func LoadTextWordlist(fns []string, extensions []string, dirsearchCompatabilityM
}

for _, v := range lines {
if len(v) == 0 {
continue
}
// ensure we prepend the / for a path
if v[0] != '/' {
v = append([]byte("/"), v...)
Expand Down

0 comments on commit 50ac411

Please sign in to comment.