From 3ff27cd87afb23252c734d8c463b05492f72f3c2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 27 Apr 2020 17:00:33 +0100 Subject: [Fix] Skip spaces at the boundary end --- src/libmime/mime_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libmime/mime_parser.c') diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index e15f8974e..4038f59c6 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -1076,7 +1076,7 @@ rspamd_mime_preprocess_cb (struct rspamd_multipattern *mp, blen = 0; while (p < end) { - if (*p == '\r' || *p == '\n') { + if (g_ascii_isspace (*p)) { break; } else if (*p != '-') { -- cgit v1.2.3