[Commits] [SCM] claws branch, master, updated. 3.16.0-223-gbc4d367

claws at claws-mail.org claws at claws-mail.org
Fri Jun 29 13:02:26 CEST 2018


The branch, master has been updated
       via  bc4d3678036bc6b6fe3c54e19f5f075559d08706 (commit)
      from  e99d08a937bebdab5ba008aa89bad136d0301450 (commit)

Summary of changes:
 src/plugins/vcalendar/vcal_folder.c |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit bc4d3678036bc6b6fe3c54e19f5f075559d08706
Author: Paul <paul at claws-mail.org>
Date:   Fri Jun 29 12:02:22 2018 +0100

    vCalendar: Skip whitespace chars at the beginning of ics stream
    
    patch by Avinash Sonawane

diff --git a/src/plugins/vcalendar/vcal_folder.c b/src/plugins/vcalendar/vcal_folder.c
index d4217a1..9f00a9b 100644
--- a/src/plugins/vcalendar/vcal_folder.c
+++ b/src/plugins/vcalendar/vcal_folder.c
@@ -34,6 +34,7 @@
 #include <unistd.h>
 #include <curl/curl.h>
 #include <curl/curlver.h>
+#include <ctype.h>
 
 #include "account.h"
 #include "utils.h"
@@ -1832,7 +1833,12 @@ static void update_subscription_finish(const gchar *uri, gchar *feed, gboolean v
 			g_free(error);
 		return;
 	}
-	if (strncmp(feed, "BEGIN:VCALENDAR", strlen("BEGIN:VCALENDAR"))) {
+
+	gchar *tmp = feed;
+	while (*tmp && isspace((unsigned char)*tmp))
+		tmp++;
+
+	if (strncmp(tmp, "BEGIN:VCALENDAR", strlen("BEGIN:VCALENDAR"))) {
 		gchar *err_msg = _("This URL does not look like a Webcal URL:\n%s\n%s");
 
 		if (verbose && manual_update) {

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list