From bc6a61dc89a2af2e874f83d1e876d0d0b65b4e26 Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Tue, 26 Oct 2010 23:56:59 -0400 Subject: [PATCH] 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. --- plugins/Gravatar/GravatarPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5