From dedec549bf0440f9f6e849b7d46be2e9c2309a5e 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/ui/Avatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/components/ui/Avatar.js b/server/sonar-web/src/main/js/components/ui/Avatar.js index b52d9ff23ef..53e4b90af11 100644 --- a/server/sonar-web/src/main/js/components/ui/Avatar.js +++ b/server/sonar-web/src/main/js/components/ui/Avatar.js @@ -34,7 +34,7 @@ export default class Avatar extends React.Component { 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