From 66df4d94e2a53a201e3fca6dea53cdbbb66b70fd Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 24 Sep 2025 19:19:17 +0200 Subject: [PATCH] change known headers verification strategy Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- leak-utils/misc/csv.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/leak-utils/misc/csv.go b/leak-utils/misc/csv.go index a2bd743..e5850bc 100644 --- a/leak-utils/misc/csv.go +++ b/leak-utils/misc/csv.go @@ -97,8 +97,10 @@ func csvHasHeader(inputFile string) (hasHeader bool, err error) { } knownHeaders := []string{"email", "password", "username", "phone", "lastname", "firstname", "mail", "addresse", "nom", "id"} for _, knownHeader := range knownHeaders { - if slices.Contains(firstRow, knownHeader) { - return true, nil + for _, col := range firstRow { + if strings.ToLower(col) == knownHeader { + return true, nil + } } } return false, nil