aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-16 13:23:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-16 13:23:00 +0000
commitbe6ad351d49de79dd1ab64e63b50d9779db92d2d (patch)
tree53b73f78edd1e7c8c271f0b3b8f5673948e674a1 /src/libmime
parent9c5e13042c6ac9d31ab73387e166733677f5b4a3 (diff)
downloadrspamd-be6ad351d49de79dd1ab64e63b50d9779db92d2d.tar.gz
rspamd-be6ad351d49de79dd1ab64e63b50d9779db92d2d.zip
[Minor] Use zw space check macro
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index cb85a512b..b7d43e356 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -239,7 +239,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task,
if (uc != -1) {
while (p < pe) {
- if (uc == 0x200b || uc == 0x200c) {
+ if (IS_ZERO_WIDTH_SPACE (uc)) {
/* Invisible space ! */
task->flags |= RSPAMD_TASK_FLAG_BAD_UNICODE;
part->spaces ++;
@@ -253,7 +253,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task,
U8_NEXT (begin, off, pe - begin, uc);
- if (uc != 0x200b) {
+ if (!IS_ZERO_WIDTH_SPACE (uc)) {
break;
}