]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Message header parser didn't skip all LWSP at the beginning of headers, only one.
authorTimo Sirainen <tss@iki.fi>
Thu, 23 Apr 2009 16:01:40 +0000 (12:01 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 23 Apr 2009 16:01:40 +0000 (12:01 -0400)
Patch by Johann Klasek.

--HG--
branch : HEAD

src/lib-mail/message-header-parser.c

index 54c6d71e44d63dbd015e19911a5f21e261adbf1b..4f9af47f1aa3a900d1961a9c844f1ea518418286 100644 (file)
@@ -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;
                        }