mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
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:
committed by
Pieter de Bie
parent
971e8e5bcc
commit
4f1fe8a1f6
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user