aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-25 18:02:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-25 18:02:10 +0100
commitab9224fb44a83b79558e35879dfbad021e6a6760 (patch)
tree6df227a3e985506d0d1231843799b111e802a1fe /src/libmime/mime_parser.c
parenta130a1fa4bcad2d5db9964ad8ef7195b631b08b5 (diff)
downloadrspamd-ab9224fb44a83b79558e35879dfbad021e6a6760.tar.gz
rspamd-ab9224fb44a83b79558e35879dfbad021e6a6760.zip
[Fix] Fix parsing boundaries with spaces
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index f386e8c6b..213eb99d2 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -1078,7 +1078,7 @@ rspamd_mime_preprocess_cb (struct rspamd_multipattern *mp,
blen = 0;
while (p < end) {
- if (g_ascii_isspace (*p)) {
+ if (*p == '\r' || *p == '\n') {
break;
}
else if (*p != '-') {