diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-09 14:09:00 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-09 14:23:59 +0100 |
commit | 86e3a152fbf073ec59df0f2b18a825b27ce6b710 (patch) | |
tree | 31dc2225b1650d3a7021f4ea816386ba1a1ff07d /src/libmime | |
parent | b2df8e9b92b5bafa89ec4c31ccb747dbc6dac5e1 (diff) | |
download | rspamd-86e3a152fbf073ec59df0f2b18a825b27ce6b710.tar.gz rspamd-86e3a152fbf073ec59df0f2b18a825b27ce6b710.zip |
[Minor] Do not go into utf8 checks on non utf8 leading characters
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); |