[Commits] [SCM] claws branch, master, updated. 3.9.3-53-g09a5663

mones at claws-mail.org mones at claws-mail.org
Fri Mar 21 01:36:19 CET 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  09a5663e54c7a4d407221e8432dfb637260dcb1d (commit)
      from  6469d5311aae1b83485589e91ab40afad51bd63c (commit)


- Log -----------------------------------------------------------------
commit 09a5663e54c7a4d407221e8432dfb637260dcb1d
Author: Ricardo Mones <ricardo at mones.org>
Date:   Fri Mar 21 01:36:06 2014 +0100

    Fix default custom URL: needs 3 redirects

diff --git a/src/plugins/libravatar/libravatar.c b/src/plugins/libravatar/libravatar.c
index 293b236..62d7dc3 100644
--- a/src/plugins/libravatar/libravatar.c
+++ b/src/plugins/libravatar/libravatar.c
@@ -154,7 +154,8 @@ static GtkWidget *image_widget_from_url(const gchar *url, const gchar *md5)
 		long filesize;
 
 		if (libravatarprefs.allow_redirects) {
-			long maxredirs = (libravatarprefs.default_mode == DEF_MODE_MM)? 2L: 1L;
+			long maxredirs = (libravatarprefs.default_mode == DEF_MODE_URL)? 3L
+				: ((libravatarprefs.default_mode == DEF_MODE_MM)? 2L: 1L);
 
 			curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
 			curl_easy_setopt(curl, CURLOPT_MAXREDIRS, maxredirs);

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

Summary of changes:
 src/plugins/libravatar/libravatar.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list