commit d43bc62: [Minor] Core: Treat 0x200c as zero width space as well

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jan 14 18:00:08 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-01-14 10:08:21 +0000
URL: https://github.com/rspamd/rspamd/commit/d43bc62e0a733b8666aad028628173c71c3fc2f3

[Minor] Core: Treat 0x200c as zero width space as well

---
 src/libmime/message.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libmime/message.c b/src/libmime/message.c
index f75916465..a07cb6c8d 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -238,7 +238,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task,
 
 			if (uc != -1) {
 				while (p < pe) {
-					if (uc == 0x200b) {
+					if (uc == 0x200b || uc == 0x200c) {
 						/* Invisible space ! */
 						task->flags |= RSPAMD_TASK_FLAG_BAD_UNICODE;
 						part->spaces ++;


More information about the Commits mailing list