diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-23 18:29:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-23 18:29:34 +0100 |
commit | 41d939a6877525629d7e8b82504c5d67d61d7633 (patch) | |
tree | 7c5a74c4976f0ffcb4d7828b9578a7944517dfa6 /src/libmime | |
parent | efd7a58f732c855e51cead1c1571ad3ddef4b987 (diff) | |
download | rspamd-41d939a6877525629d7e8b82504c5d67d61d7633.tar.gz rspamd-41d939a6877525629d7e8b82504c5d67d61d7633.zip |
[Fix] Try harder to detect CTE
Issue: #1468
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/mime_parser.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index d93cde835..b23b0cdee 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -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 == '=') { |