commit 3ff27cd: [Fix] Skip spaces at the boundary end
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Apr 27 16:07:07 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-04-27 17:00:33 +0100
URL: https://github.com/rspamd/rspamd/commit/3ff27cd87afb23252c734d8c463b05492f72f3c2
[Fix] Skip spaces at the boundary end
---
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 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 != '-') {
More information about the Commits
mailing list