From: Timo Sirainen Date: Thu, 23 Apr 2009 16:01:40 +0000 (-0400) Subject: Message header parser didn't skip all LWSP at the beginning of headers, only one. X-Git-Tag: 2.0.alpha1~896 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c52eba0224a0ff239f4778a7f6ed5ce38d92a5dd;p=thirdparty%2Fdovecot%2Fcore.git Message header parser didn't skip all LWSP at the beginning of headers, only one. Patch by Johann Klasek. --HG-- branch : HEAD --- diff --git a/src/lib-mail/message-header-parser.c b/src/lib-mail/message-header-parser.c index 54c6d71e44..4f9af47f1a 100644 --- a/src/lib-mail/message-header-parser.c +++ b/src/lib-mail/message-header-parser.c @@ -284,7 +284,7 @@ int message_parse_header_next(struct message_header_parser_ctx *ctx, Exception to this is if the value consists only of LWSP, then skip only the one LWSP after ':'. */ for (pos = 0; pos < line->value_len; pos++) { - if (!IS_LWSP(line->value[0])) + if (!IS_LWSP(line->value[pos])) break; }