From 4f1fe8a1f6bcb62e035c48c236c92f54873fa3fc Mon Sep 17 00:00:00 2001 From: Till Salzer Date: Wed, 21 Jan 2009 20:49:00 +0000 Subject: [PATCH] Gravatar: Sanitize email address before calculating MD5 The MD5 of the email address that Gravatar uses should be without any capitalized characters or spaces. --- html/views/history/history.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/views/history/history.js b/html/views/history/history.js index d61a465..ee3e98c 100644 --- a/html/views/history/history.js +++ b/html/views/history/history.js @@ -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) {