Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@xxxxxxxxx> --- gitweb/gitweb.perl | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index ae73d45..e2638cb 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1546,9 +1546,13 @@ sub picon_url { sub gravatar_url { my $email = lc shift; my $size = shift; - $avatar_cache{$email} ||= - "http://www.gravatar.com/avatar.php?gravatar_id=" . - Digest::MD5::md5_hex($email) . "&size="; + if (!$avatar_cache{$email}) { + my $picon = CGI::escape(picon_url($email)); + $avatar_cache{$email} = "http://www.gravatar.com/avatar.php?gravatar_id=" . + Digest::MD5::md5_hex($email) . + "&default=$picon" . + "&size="; + } return $avatar_cache{$email} . $size; } -- 1.6.3.rc1.192.gdbfcb -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html