summaryrefslogtreecommitdiffstats
path: root/src/libutil/map_helpers.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-20 20:44:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-20 20:45:22 +0000
commita45141c003e065341474de0ec0b4310b2f4437c8 (patch)
tree2e9851e15290df805793cf6b51d0a0ae0753c195 /src/libutil/map_helpers.c
parentdc506fc54b60f4bcc7390447a0d80bfd6f799e54 (diff)
downloadrspamd-a45141c003e065341474de0ec0b4310b2f4437c8.tar.gz
rspamd-a45141c003e065341474de0ec0b4310b2f4437c8.zip
[Fix] Properly escape utf8 regexps in hyperscan mode
Diffstat (limited to 'src/libutil/map_helpers.c')
-rw-r--r--src/libutil/map_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/map_helpers.c b/src/libutil/map_helpers.c
index e6b940f23..4c34cba15 100644
--- a/src/libutil/map_helpers.c
+++ b/src/libutil/map_helpers.c
@@ -540,7 +540,7 @@ rspamd_map_helper_insert_re (gpointer st, gconstpointer key, gconstpointer value
if (re_map->map_flags & RSPAMD_REGEXP_MAP_FLAG_GLOB) {
escaped = rspamd_str_regexp_escape (key, strlen (key), &escaped_len,
- TRUE);
+ RSPAMD_REGEXP_ESCAPE_GLOB|RSPAMD_REGEXP_ESCAPE_UTF);
re = rspamd_regexp_new (escaped, NULL, &err);
g_free (escaped);
}