diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-25 16:57:15 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-02-25 16:57:15 +0000 |
commit | 4252d607561fe062a14d2a00d7a636049365309c (patch) | |
tree | 4243aeab91d3f6bcbcbd0841fa123ab4ddb5f697 /src/libutil/regexp.c | |
parent | 760bf12f14698d3c71a08814e106a32663141b06 (diff) | |
download | rspamd-4252d607561fe062a14d2a00d7a636049365309c.tar.gz rspamd-4252d607561fe062a14d2a00d7a636049365309c.zip |
Fix non-UTF regexps for pcre2
Diffstat (limited to 'src/libutil/regexp.c')
-rw-r--r-- | src/libutil/regexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c index b7d461b3e..235a3c2ac 100644 --- a/src/libutil/regexp.c +++ b/src/libutil/regexp.c @@ -714,7 +714,7 @@ rspamd_regexp_search (rspamd_regexp_t *re, const gchar *text, gsize len, #ifdef HAVE_PCRE_JIT if (!(re->flags & RSPAMD_REGEXP_FLAG_DISABLE_JIT) && can_jit) { - if (!g_utf8_validate (mt, remain, NULL)) { + if (re->re != re->raw_re && !g_utf8_validate (mt, remain, NULL)) { msg_err ("bad utf8 input for JIT re"); return FALSE; } |