]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: event filter - strlist comparisons should be case-insensitive
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 4 May 2023 15:22:56 +0000 (18:22 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Sun, 21 May 2023 17:41:38 +0000 (17:41 +0000)
All the other string comparisons are case-insensitive as well.

src/lib/event-filter.c

index 87e995e32216b9bf5705f1d31a654b17f2e8fe3e..05be80970fe7f5f85381825a729868e5b761ddad 100644 (file)
@@ -511,7 +511,7 @@ event_match_strlist_recursive(struct event *event,
                i_assert(field->value_type == EVENT_FIELD_VALUE_TYPE_STRLIST);
                array_foreach_elem(&field->value.strlist, value) {
                        *seen = TRUE;
-                       match = use_strcmp ? strcmp(value, wanted_value) == 0 :
+                       match = use_strcmp ? strcasecmp(value, wanted_value) == 0 :
                                wildcard_match_icase(value, wanted_value);
                        if (match)
                                return TRUE;