diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-12 17:06:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-12 17:06:51 +0100 |
commit | 041bbc6c78d090698660fe6cf39802060ea0e203 (patch) | |
tree | 59ff0c830080d73b8c30c974f3a0886af44e1e9d | |
parent | 8458f9bb5c7ee6821d4b674fca55224daf6d9a82 (diff) | |
download | rspamd-041bbc6c78d090698660fe6cf39802060ea0e203.tar.gz rspamd-041bbc6c78d090698660fe6cf39802060ea0e203.zip |
[Fix] Groups are now case insensitive
-rw-r--r-- | src/libserver/cfg_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |