commit 776a027: [Minor] Core: Also count spaces when skipping invisible spaces
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Jan 12 15:00:04 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-01-12 14:54:40 +0000
URL: https://github.com/rspamd/rspamd/commit/776a0273b5dc02498fcc24373bdb76ae608219fa (HEAD -> master)
[Minor] Core: Also count spaces when skipping invisible spaces
---
src/libmime/message.c | 2 ++
1 file changed, 2 insertions(+)
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;
}
More information about the Commits
mailing list