Skip to content

Commit 4f1fe8a

Browse files
Till Salzerpieter
authored andcommitted
Gravatar: Sanitize email address before calculating MD5
The MD5 of the email address that Gravatar uses should be without any capitalized characters or spaces.
1 parent 971e8e5 commit 4f1fe8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html/views/history/history.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var setGravatar = function(email, image) {
108108
}
109109

110110
image.src = "http://www.gravatar.com/avatar/" +
111-
hex_md5(commit.author_email) + "?d=wavatar&s=60";
111+
hex_md5(commit.author_email.toLowerCase().replace(/ /g, "")) + "?d=wavatar&s=60";
112112
}
113113

114114
var selectCommit = function(a) {

0 commit comments

Comments
 (0)