From: Vsevolod Stakhov Date: Tue, 12 Jul 2016 16:06:51 +0000 (+0100) Subject: [Fix] Groups are now case insensitive X-Git-Tag: 1.3.0~104 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=041bbc6c78d090698660fe6cf39802060ea0e203;p=rspamd.git [Fix] Groups are now case insensitive --- 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;