]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
config: Store local_name lowercased in filters
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 28 Nov 2024 10:57:25 +0000 (12:57 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 17 Jan 2025 08:40:01 +0000 (10:40 +0200)
src/config/config-filter.c
src/config/config-parser.c

index 7a585a2b5bb90eee56f8ad336febbdd88a22d16d..3ce3c119ec17093be99f62fa7203d1101ac620fe 100644 (file)
@@ -123,7 +123,7 @@ bool config_filters_equal_no_recursion(const struct config_filter *f1,
        if (!net_ip_compare(&f1->local_net, &f2->local_net))
                return FALSE;
 
-       if (null_strcasecmp(f1->local_name, f2->local_name) != 0)
+       if (null_strcmp(f1->local_name, f2->local_name) != 0)
                return FALSE;
 
        if (null_strcmp(f1->filter_name, f2->filter_name) != 0)
index 5364debe6d5b227994b57f4f5c8a12e484066d91..477aa8cee4211f4d10aba874bdb420ba01dae095 100644 (file)
@@ -1211,7 +1211,7 @@ int config_filter_parse(struct config_filter *filter, pool_t pool,
                                t_strcut(parent->filter_name, '/'),
                                t_strcut(parent->filter_name, '/'));
                else
-                       filter->local_name = p_strdup(pool, value);
+                       filter->local_name = p_strdup(pool, t_str_lcase(value));
        } else if (strcmp(key, "remote") == 0) {
                if (parent->protocol != NULL)
                        *error_r = "protocol { remote { .. } } not allowed (use remote { protocol { .. } } instead)";