dovecot-1.2: Message header parser didn't skip all LWSP at the b...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 23 19:01:50 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/c8de2237478f
changeset: 8980:c8de2237478f
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 23 12:01:40 2009 -0400
description:
Message header parser didn't skip all LWSP at the beginning of headers, only one.
Patch by Johann Klasek.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-mail/message-header-parser.c |    2 +-

diffs (12 lines):

diff -r f8404c0f14de -r c8de2237478f src/lib-mail/message-header-parser.c
--- a/src/lib-mail/message-header-parser.c	Wed Apr 22 13:54:54 2009 -0400
+++ b/src/lib-mail/message-header-parser.c	Thu Apr 23 12:01:40 2009 -0400
@@ -284,7 +284,7 @@ int message_parse_header_next(struct mes
 			   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;
 			}
 


More information about the dovecot-cvs mailing list