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

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


details:   http://hg.dovecot.org/dovecot-1.1/rev/685c1be82282
changeset: 8252:685c1be82282
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 f7baedd9c1e2 -r 685c1be82282 src/lib-mail/message-header-parser.c
--- a/src/lib-mail/message-header-parser.c	Tue Apr 21 16:36:52 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