From: Timo Sirainen Date: Thu, 4 May 2023 15:22:56 +0000 (+0300) Subject: lib: event filter - strlist comparisons should be case-insensitive X-Git-Tag: 2.4.0~2752 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90fc342f3d76c64c08a2d449a57e882746a34b1f;p=thirdparty%2Fdovecot%2Fcore.git lib: event filter - strlist comparisons should be case-insensitive All the other string comparisons are case-insensitive as well. --- diff --git a/src/lib/event-filter.c b/src/lib/event-filter.c index 87e995e322..05be80970f 100644 --- a/src/lib/event-filter.c +++ b/src/lib/event-filter.c @@ -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;