commit ab9224f: [Fix] Fix parsing boundaries with spaces
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Sep 25 17:07:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-09-25 18:02:10 +0100
URL: https://github.com/rspamd/rspamd/commit/ab9224fb44a83b79558e35879dfbad021e6a6760 (HEAD -> master)
[Fix] Fix parsing boundaries with spaces
---
src/libmime/mime_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 != '-') {
More information about the Commits
mailing list