Skip to content

Commit 3c64fa0

Browse files
committed
small fixes
1 parent 57e96de commit 3c64fa0

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

pkg/flags.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,15 @@ func ParseFlags(vers string) {
171171
}
172172

173173
// IgnoreStatus string to int slice
174-
statusSlice := strings.Split(ignoreStatus, ",")
175-
for _, status := range statusSlice {
176-
statusInt, err := strconv.Atoi(strings.TrimSpace(status))
177-
if err != nil {
178-
PrintFatal("Error converting to int: " + err.Error())
174+
if ignoreStatus != "" {
175+
statusSlice := strings.Split(ignoreStatus, ",")
176+
for _, status := range statusSlice {
177+
statusInt, err := strconv.Atoi(strings.TrimSpace(status))
178+
if err != nil {
179+
PrintFatal("Error converting to int: " + err.Error())
180+
}
181+
Config.IgnoreStatus = append(Config.IgnoreStatus, statusInt)
179182
}
180-
Config.IgnoreStatus = append(Config.IgnoreStatus, statusInt)
181183
}
182184

183185
// Read RecExcludeURL(s)

pkg/requests.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func checkPoisoningIndicators(repResult *reportResult, request reportRequest, su
8282
if len(Config.IgnoreStatus) > 0 {
8383
for _, status := range Config.IgnoreStatus {
8484
if statusCode1 == status || Config.Website.StatusCode == status {
85-
PrintVerbose("Skipped Status Code "+strconv.Itoa(status), NoColor, 2)
85+
PrintVerbose("Skipped Status Code "+strconv.Itoa(status)+"\n", NoColor, 2)
8686
return testForResponseSplitting
8787
}
8888
}

0 commit comments

Comments
 (0)