diff options
author | Hendrik M Halkow <hendrik@halkow.com> | 2016-09-09 17:46:50 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-09-09 17:46:50 +0200 |
commit | dedec549bf0440f9f6e849b7d46be2e9c2309a5e (patch) | |
tree | 715a73e08c0d226e4d79ee0aa949b953370457c6 /server/sonar-web/src/main/js/components/ui/Avatar.js | |
parent | 6bdc00cdb4f213710b5d03033a1c131ea22b75fb (diff) | |
download | sonarqube-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.js | 2 |
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); |