diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-07 14:13:32 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-07 14:13:32 +0100 |
commit | 311582f4fd281b213ad9f19beff9d1fe8c1345cc (patch) | |
tree | 250a9d5cd17bb68b32b4c60ab2d5e7a4100158f0 /src/plugins/regexp.c | |
parent | 3e40b90c1f443bad865d54ea488c8d12a063fd2d (diff) | |
download | rspamd-311582f4fd281b213ad9f19beff9d1fe8c1345cc.tar.gz rspamd-311582f4fd281b213ad9f19beff9d1fe8c1345cc.zip |
Improve regexp items parsing diagnostics.
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r-- | src/plugins/regexp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 30824949d..27cbf924f 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -71,12 +71,12 @@ read_regexp_expression (rspamd_mempool_t * pool, struct regexp_module_item *chain, const gchar *symbol, const gchar *line, - gboolean raw_mode) + struct rspamd_config *cfg) { struct rspamd_expression *e = NULL; GError *err = NULL; - if (!rspamd_parse_expression (line, 0, &mime_expr_subr, NULL, pool, &err, + if (!rspamd_parse_expression (line, 0, &mime_expr_subr, cfg, pool, &err, &e)) { msg_warn ("%s = \"%s\" is invalid regexp expression: %e", symbol, line, err); @@ -137,7 +137,7 @@ regexp_module_config (struct rspamd_config *cfg) cur_item->symbol = ucl_object_key (value); if (!read_regexp_expression (regexp_module_ctx->regexp_pool, cur_item, ucl_object_key (value), - ucl_obj_tostring (value), cfg->raw_mode)) { + ucl_obj_tostring (value), cfg)) { res = FALSE; } else { |