[dovecot-cvs] dovecot/src/lib-imap imap-date.c,1.8,1.9

tss at dovecot.org tss at dovecot.org
Sun May 13 16:24:37 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-imap
In directory talvi:/tmp/cvs-serv12532

Modified Files:
	imap-date.c 
Log Message:
imap_parse_date() returns failure now if there's any extra data after the
date.



Index: imap-date.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-imap/imap-date.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- imap-date.c	13 Jan 2006 20:26:09 -0000	1.8
+++ imap-date.c	13 May 2007 13:24:35 -0000	1.9
@@ -84,7 +84,7 @@
 	struct tm tm;
 
 	str = imap_parse_date_internal(str, &tm);
-	if (str == NULL)
+	if (str == NULL || str[0] != '\0')
 		return FALSE;
 
 	tm.tm_isdst = -1;



More information about the dovecot-cvs mailing list