]> source.dussan.org Git - rspamd.git/commitdiff
Do not validate utf for raw headers.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 17 Nov 2014 11:48:27 +0000 (11:48 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 17 Nov 2014 11:48:27 +0000 (11:48 +0000)
src/plugins/regexp.c

index 76a0af8040bd2e8721130d1ed1004e89eb466fe4..39b8af1ec678b9e3da83171d2c5045327ca3a6f3 100644 (file)
@@ -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) {