aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-23 18:29:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-23 18:29:34 +0100
commit41d939a6877525629d7e8b82504c5d67d61d7633 (patch)
tree7c5a74c4976f0ffcb4d7828b9578a7944517dfa6 /src/libmime
parentefd7a58f732c855e51cead1c1571ad3ddef4b987 (diff)
downloadrspamd-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.c7
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 == '=') {