diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-12 14:54:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-12 14:54:40 +0000 |
commit | 776a0273b5dc02498fcc24373bdb76ae608219fa (patch) | |
tree | 98ecebb072e908cd303856b1870ab49c20231e5d /src/libmime/message.c | |
parent | f03ded05654f6fd62028e3dcaea461fe0116b96c (diff) | |
download | rspamd-776a0273b5dc02498fcc24373bdb76ae608219fa.tar.gz rspamd-776a0273b5dc02498fcc24373bdb76ae608219fa.zip |
[Minor] Core: Also count spaces when skipping invisible spaces
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r-- | src/libmime/message.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 4cb9e07b3..f75916465 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -241,6 +241,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, if (uc == 0x200b) { /* Invisible space ! */ task->flags |= RSPAMD_TASK_FLAG_BAD_UNICODE; + part->spaces ++; if (p > c) { g_byte_array_append (part->utf_stripped_content, @@ -255,6 +256,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, break; } + part->double_spaces ++; p = begin + off; c = p; } |