From: Vsevolod Stakhov Date: Sat, 12 Jan 2019 14:54:40 +0000 (+0000) Subject: [Minor] Core: Also count spaces when skipping invisible spaces X-Git-Tag: 1.9.0~333 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=776a0273b5dc02498fcc24373bdb76ae608219fa;p=rspamd.git [Minor] Core: Also count spaces when skipping invisible spaces --- 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; }