Gravatar: Sanitize email address before calculating MD5

The MD5 of the email address that Gravatar uses should be without any
capitalized characters or spaces.
This commit is contained in:
Till Salzer
2009-01-21 20:49:00 +00:00
committed by Pieter de Bie
parent 971e8e5bcc
commit 4f1fe8a1f6
+1 -1
View File
@@ -108,7 +108,7 @@ var setGravatar = function(email, image) {
}
image.src = "http://www.gravatar.com/avatar/" +
hex_md5(commit.author_email) + "?d=wavatar&s=60";
hex_md5(commit.author_email.toLowerCase().replace(/ /g, "")) + "?d=wavatar&s=60";
}
var selectCommit = function(a) {