From: Vsevolod Stakhov Date: Mon, 14 Jan 2019 10:08:21 +0000 (+0000) Subject: [Minor] Core: Treat 0x200c as zero width space as well X-Git-Tag: 1.9.0~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d43bc62e0a733b8666aad028628173c71c3fc2f3;p=thirdparty%2Frspamd.git [Minor] Core: Treat 0x200c as zero width space as well --- diff --git a/src/libmime/message.c b/src/libmime/message.c index f75916465c..a07cb6c8d3 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 ++;