]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix UTF8 mode in PCRE2
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Apr 2016 14:26:37 +0000 (15:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Apr 2016 14:26:37 +0000 (15:26 +0100)
src/libutil/regexp.c

index 1a097c5b3533fa307cd542751eb57631e4ee2c0b..b6adce55ff94a2c81681ce2afd7ed2b96397af67 100644 (file)
@@ -701,8 +701,6 @@ rspamd_regexp_search (rspamd_regexp_t *re, const gchar *text, gsize len,
        else {
                r = re->re;
                mcontext = re->mcontext;
-               match_flags |= PCRE_FLAG(UTF);
-
        }
 
        match_data = pcre2_match_data_create (re->ncaptures + 1, NULL);