]> source.dussan.org Git - rspamd.git/commitdiff
Fix regexp matching logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Nov 2015 15:41:44 +0000 (15:41 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 13 Nov 2015 15:41:44 +0000 (15:41 +0000)
src/libmime/message.c

index b8f6b387b4c007de5b07258c3072ab44233dcb83..18ddfbc346708245902df3715ed854889ce52efd 100644 (file)
@@ -773,7 +773,7 @@ convert_text_to_utf (struct rspamd_task *task,
                return part_content;
        }
 
-       if (!rspamd_regexp_match (utf_compatible_re, ocharset, strlen (ocharset), TRUE)) {
+       if (rspamd_regexp_match (utf_compatible_re, ocharset, strlen (ocharset), TRUE)) {
                if (g_utf8_validate (part_content->data, part_content->len, NULL)) {
                        SET_PART_UTF (text_part);
                        return part_content;