[dovecot-cvs] dovecot/src/lib-mail message-content-parser.c, 1.13, 1.14

tss at dovecot.org tss at dovecot.org
Sun Oct 15 13:23:20 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv15915

Modified Files:
	message-content-parser.c 
Log Message:
We didn't skip whitespace after '=' in parameters, which caused the
parameter's value to be empty.



Index: message-content-parser.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/message-content-parser.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- message-content-parser.c	13 Jan 2006 20:26:16 -0000	1.13
+++ message-content-parser.c	15 Oct 2006 12:23:17 -0000	1.14
@@ -48,10 +48,11 @@
 			break;
 
 		/* <token> "=" <token> | <quoted-string> */
-		if (str_len(str) == 0 || *parser.data != '=' ||
-		    rfc822_skip_lwsp(&parser) <= 0)
+		if (str_len(str) == 0 || *parser.data != '=')
 			break;
 		parser.data++;
+		if (rfc822_skip_lwsp(&parser) <= 0)
+			break;
 
 		quoted_string = parser.data != parser.end &&
 			*parser.data == '"';



More information about the dovecot-cvs mailing list