changeset 5600:945966bb18c2 HEAD

imap_parse_date() returns failure now if there's any extra data after the date.
author Timo Sirainen <tss@iki.fi>
date Sun, 13 May 2007 16:24:35 +0300
parents 6789ba80419b
children b02af502bcd6
files src/lib-imap/imap-date.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-imap/imap-date.c	Sun May 13 16:23:02 2007 +0300
+++ b/src/lib-imap/imap-date.c	Sun May 13 16:24:35 2007 +0300
@@ -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;