From: Craig Andrews Date: Wed, 27 Oct 2010 03:56:59 +0000 (-0400) Subject: Use https for gravatars X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc6a61dc89a2af2e874f83d1e876d0d0b65b4e26;p=quix0rs-gnu-social.git Use https for gravatars No reason not to use https, and doing so prevents mixed content warnings when the avatars are used on https pages. --- diff --git a/plugins/Gravatar/GravatarPlugin.php b/plugins/Gravatar/GravatarPlugin.php index dd8ff72176..5fcc79fd51 100644 --- a/plugins/Gravatar/GravatarPlugin.php +++ b/plugins/Gravatar/GravatarPlugin.php @@ -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;