diff options
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 532667e5d..d788844a3 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -240,7 +240,7 @@ rspamd_strip_newlines_parse (struct rspamd_task *task, } state = normal_char; while (p < pe) { - if (is_utf) { + if (U8_IS_LEAD(*p) && is_utf) { gint32 off = p - begin; U8_NEXT (begin, off, pe - begin, uc); |