From 0a1d39237381a10ccbbf0f3aa5658645d3196081 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 17 Nov 2014 11:48:27 +0000 Subject: [PATCH] Do not validate utf for raw headers. --- src/plugins/regexp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) { -- 2.39.5