]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Skip spaces at the boundary end
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Apr 2020 16:00:33 +0000 (17:00 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Apr 2020 16:00:33 +0000 (17:00 +0100)
src/libmime/mime_parser.c

index e15f8974ed6e12cedc90cc3ba9ed84ec6248fff3..4038f59c6a24a5f37725c312c79351ea04842600 100644 (file)
@@ -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 != '-') {