aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/ui/Avatar.js
diff options
context:
space:
mode:
authorHendrik M Halkow <hendrik@halkow.com>2016-09-09 17:46:50 +0200
committerStas Vilchik <vilchiks@gmail.com>2016-09-09 17:46:50 +0200
commitdedec549bf0440f9f6e849b7d46be2e9c2309a5e (patch)
tree715a73e08c0d226e4d79ee0aa949b953370457c6 /server/sonar-web/src/main/js/components/ui/Avatar.js
parent6bdc00cdb4f213710b5d03033a1c131ea22b75fb (diff)
downloadsonarqube-dedec549bf0440f9f6e849b7d46be2e9c2309a5e.tar.gz
sonarqube-dedec549bf0440f9f6e849b7d46be2e9c2309a5e.zip
SONAR-8033 Gravatar now works with non-lowercase email addresses. (#1218)
Diffstat (limited to 'server/sonar-web/src/main/js/components/ui/Avatar.js')
-rw-r--r--server/sonar-web/src/main/js/components/ui/Avatar.js2
1 files changed, 1 insertions, 1 deletions
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);