From: Vsevolod Stakhov Date: Mon, 17 Nov 2014 11:48:27 +0000 (+0000) Subject: Do not validate utf for raw headers. X-Git-Tag: 0.7.5~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0a1d39237381a10ccbbf0f3aa5658645d3196081;p=rspamd.git Do not validate utf for raw headers. --- diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 76a0af804..39b8af1ec 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -518,15 +518,14 @@ process_regexp (struct rspamd_regexp *re, else { in = rh->decoded; regexp = re->regexp; - } - /* Try to match regexp */ - if (!re->is_raw) { /* Validate input */ if (!in || !g_utf8_validate (in, -1, NULL)) { cur = g_list_next (cur); continue; } } + + /* Match re */ if (in && g_regex_match_full (regexp, in, -1, 0, 0, NULL, &err) == TRUE) {