From a9db19f255cd49d9701c2b51bbdbba50fd52ebcb Mon Sep 17 00:00:00 2001 From: Lars Karlslund Date: Thu, 12 May 2022 11:44:22 +0200 Subject: [PATCH] Fix for regexp search case sensitivity --- modules/ldapquery/queryparser.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/ldapquery/queryparser.go b/modules/ldapquery/queryparser.go index c40c763..0056c4f 100644 --- a/modules/ldapquery/queryparser.go +++ b/modules/ldapquery/queryparser.go @@ -448,9 +448,6 @@ valueloop: if strings.HasPrefix(value, "/") && strings.HasSuffix(value, "/") { // regexp magic pattern := value[1 : len(value)-1] - if !casesensitive { - pattern = strings.ToLower(pattern) - } r, err := regexp.Compile(pattern) if err != nil { return nil, nil, err