]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Try harder to detect CTE
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 May 2017 17:29:34 +0000 (18:29 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 23 May 2017 17:30:03 +0000 (18:30 +0100)
Issue: #1468

src/libmime/mime_parser.c

index d93cde835364c98667a750ca19deb69f18ab1f98..b23b0cdeeab22e45999720e30e83defd9d764768 100644 (file)
@@ -201,12 +201,7 @@ rspamd_mime_part_get_cte_heuristic (struct rspamd_task *task,
        }
 
        while (p < end) {
-               if (*p == '\r' || *p == '\n') {
-                       if (!b64_chars || n8bit || nspaces) {
-                               break;
-                       }
-               }
-               else if (*p == ' ') {
+               if (*p == ' ') {
                        nspaces ++;
                }
                else if (*p == '=') {