[Commits] [SCM] claws branch, master, updated. 3.11.1-53-g72510f2

ticho at claws-mail.org ticho at claws-mail.org
Thu Jan 8 22:51:51 CET 2015


The branch, master has been updated
       via  72510f27b10889e119b42804835e8beaf70bc18d (commit)
      from  d4fa1c076942efbf17094123c14530d607fb6d09 (commit)

Summary of changes:
 src/plugins/rssyl/libfeed/date.c |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 72510f27b10889e119b42804835e8beaf70bc18d
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu Jan 8 22:51:04 2015 +0100

    RSSyl: Day-of-week name in RFC822 timestamps is optional.

diff --git a/src/plugins/rssyl/libfeed/date.c b/src/plugins/rssyl/libfeed/date.c
index c37756d..92f5a86 100644
--- a/src/plugins/rssyl/libfeed/date.c
+++ b/src/plugins/rssyl/libfeed/date.c
@@ -132,8 +132,11 @@ time_t parseRFC822Date(gchar *date)
 	if (c != NULL)
 		setlocale(LC_TIME, "C");
 
-	if (!strptime(date, "%a, %d %b %Y %H:%M:%S %Z", &t) &&
-		!strptime(date, "%a, %d %b %Y %H:%M %Z", &t)) {
+	if (date != NULL &&
+			!strptime(date, "%a, %d %b %Y %H:%M:%S %Z", &t) &&
+			!strptime(date, "%a, %d %b %Y %H:%M %Z", &t) &&
+			!strptime(date, "%d %b %Y %H:%M:%S %Z", &t) &&
+			!strptime(date, "%d %b %Y %H:%M %Z", &t)) {
 		g_warning("Invalid RFC822 date!\n");
 		if (c != NULL)
 			setlocale(LC_TIME, c);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list