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

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


details:   http://hg.dovecot.org/dovecot-1.3/rev/cd85782b64f9
changeset: 9156:cd85782b64f9
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 3dae5834ded3 -r cd85782b64f9 src/lib-mail/message-header-parser.c
--- a/src/lib-mail/message-header-parser.c	Wed Apr 22 14:27:46 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