From fe77597e418fb06ce2e10fe786f9dfd667aa2c19 Mon Sep 17 00:00:00 2001 From: Hendrik M Halkow Date: Fri, 9 Sep 2016 17:46:50 +0200 Subject: [PATCH] SONAR-8033 Gravatar now works with non-lowercase email addresses. (#1218) --- server/sonar-web/src/main/js/components/shared/avatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/components/shared/avatar.js b/server/sonar-web/src/main/js/components/shared/avatar.js index 5fc4dad8bf4..1b6916b69b5 100644 --- a/server/sonar-web/src/main/js/components/shared/avatar.js +++ b/server/sonar-web/src/main/js/components/shared/avatar.js @@ -31,7 +31,7 @@ export default React.createClass({ if (!shouldShowAvatar) { return null; } - const emailHash = md5.md5(this.props.email || '').trim(); + const emailHash = md5.md5((this.props.email || '').toLowerCase()).trim(); const url = ('' + window.SS.lf.gravatarServerUrl) .replace('{EMAIL_MD5}', emailHash) .replace('{SIZE}', this.props.size * 2); -- 2.39.5