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:49:48 +0200 |
commit | fe77597e418fb06ce2e10fe786f9dfd667aa2c19 (patch) | |
tree | 1ab126c046385eeb58c52e94e89d5139f2e00e3d /server | |
parent | 7a5a65c74ebdbe4d5d39795c72d7aa9df95b88a9 (diff) | |
download | sonarqube-fe77597e418fb06ce2e10fe786f9dfd667aa2c19.tar.gz sonarqube-fe77597e418fb06ce2e10fe786f9dfd667aa2c19.zip |
SONAR-8033 Gravatar now works with non-lowercase email addresses. (#1218)
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/components/shared/avatar.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |