From 041bbc6c78d090698660fe6cf39802060ea0e203 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 12 Jul 2016 17:06:51 +0100 Subject: [PATCH] [Fix] Groups are now case insensitive --- src/libserver/cfg_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 7967b297f..a38171475 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -876,7 +876,7 @@ rspamd_config_new_metric (struct rspamd_config *cfg, struct metric *c, c = rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (struct metric)); c->grow_factor = 1.0; c->symbols = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); - c->groups = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); + c->groups = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal); for (i = METRIC_ACTION_REJECT; i < METRIC_ACTION_MAX; i++) { c->actions[i].score = NAN; -- 2.39.5