]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use https for gravatars
authorCraig Andrews <candrews@integralblue.com>
Wed, 27 Oct 2010 03:56:59 +0000 (23:56 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 27 Oct 2010 03:56:59 +0000 (23:56 -0400)
No reason not to use https, and doing so prevents mixed content warnings when the avatars are used on https pages.

plugins/Gravatar/GravatarPlugin.php

index dd8ff7217615e8138ee55a5623fa04126de75868..5fcc79fd51809c0c031bbea4834b920f8eaded3b 100644 (file)
@@ -183,7 +183,7 @@ class GravatarPlugin extends Plugin
 
     function gravatar_url($email, $size)
     {
-        $url = "http://www.gravatar.com/avatar.php?gravatar_id=".
+        $url = "https://secure.gravatar.com/avatar.php?gravatar_id=".
                 md5(strtolower($email)).
                 "&default=".urlencode(Avatar::defaultImage($size)).
                 "&size=".$size;