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.
This commit is contained in:
Craig Andrews 2010-10-26 23:56:59 -04:00
parent 5476ffa944
commit bc6a61dc89

View File

@ -183,7 +183,7 @@ class GravatarPlugin extends Plugin
function gravatar_url($email, $size) 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)). md5(strtolower($email)).
"&default=".urlencode(Avatar::defaultImage($size)). "&default=".urlencode(Avatar::defaultImage($size)).
"&size=".$size; "&size=".$size;