From 90fc342f3d76c64c08a2d449a57e882746a34b1f Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 4 May 2023 18:22:56 +0300 Subject: [PATCH] lib: event filter - strlist comparisons should be case-insensitive All the other string comparisons are case-insensitive as well. --- src/lib/event-filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3