summaryrefslogtreecommitdiffstats
path: root/extensions/Gravatar
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-08-19 08:05:44 +0200
committerByron Jones <bjones@mozilla.com>2013-08-19 08:05:44 +0200
commitddb819c3e46d3d84b692515f11ebd82199bee2f3 (patch)
treebb2d0e2cc03d3266693bf36c3829da992b7a340f /extensions/Gravatar
parentadf8fc7a582e3217ca81e53175fa4e11c76140fa (diff)
downloadbugzilla-ddb819c3e46d3d84b692515f11ebd82199bee2f3.tar.gz
bugzilla-ddb819c3e46d3d84b692515f11ebd82199bee2f3.tar.xz
Bug 906571: gravatars should use the lowercase form of the email
Diffstat (limited to 'extensions/Gravatar')
-rw-r--r--extensions/Gravatar/Extension.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/Gravatar/Extension.pm b/extensions/Gravatar/Extension.pm
index dc6ae5aaf..3ff1a159d 100644
--- a/extensions/Gravatar/Extension.pm
+++ b/extensions/Gravatar/Extension.pm
@@ -23,7 +23,7 @@ sub _user_gravatar {
my ($self) = @_;
if (!$self->{gravatar}) {
(my $email = $self->email) =~ s/\+(.*?)\@/@/;
- $self->{gravatar} = 'https://secure.gravatar.com/avatar/' . md5_hex($email) . "?size=32&d=mm";
+ $self->{gravatar} = 'https://secure.gravatar.com/avatar/' . md5_hex(lc($email)) . "?size=32&d=mm";
}
return $self->{gravatar};
}