[dovecot-cvs] dovecot/src/lib-mail message-content-parser.c, 1.13, 1.13.2.1
tss at dovecot.org
tss at dovecot.org
Sun Oct 15 13:23:19 UTC 2006
Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv15911
Modified Files:
Tag: branch_1_0
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.13.2.1
diff -u -d -r1.13 -r1.13.2.1
--- message-content-parser.c 13 Jan 2006 20:26:16 -0000 1.13
+++ message-content-parser.c 15 Oct 2006 12:23:16 -0000 1.13.2.1
@@ -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