]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Core: Treat 0x200c as zero width space as well
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Jan 2019 10:08:21 +0000 (10:08 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Jan 2019 10:08:21 +0000 (10:08 +0000)
src/libmime/message.c

index f75916465c37607fb5dd10e6ec5244cba5a16a43..a07cb6c8d3249adc420c93569a1c8d88dd6447ad 100644 (file)
@@ -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 ++;