aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-17 11:48:27 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-17 11:48:27 +0000
commit0a1d39237381a10ccbbf0f3aa5658645d3196081 (patch)
tree7b85edec4b94e65fc983260e6bd34b107c5d92b0 /src/plugins/regexp.c
parent35e6d1bd6469320f32a4b42d0f5c6a9ea912414b (diff)
downloadrspamd-0a1d39237381a10ccbbf0f3aa5658645d3196081.tar.gz
rspamd-0a1d39237381a10ccbbf0f3aa5658645d3196081.zip
Do not validate utf for raw headers.
Diffstat (limited to 'src/plugins/regexp.c')
-rw-r--r--src/plugins/regexp.c5
1 files 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) {