]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8033 Gravatar now works with non-lowercase email addresses. (#1218)
authorHendrik M Halkow <hendrik@halkow.com>
Fri, 9 Sep 2016 15:46:50 +0000 (17:46 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 9 Sep 2016 15:49:48 +0000 (17:49 +0200)
server/sonar-web/src/main/js/components/shared/avatar.js

index 5fc4dad8bf4495042c3800ac8cd6814f8f5f7f96..1b6916b69b5355abc16413d04678c92a41512d46 100644 (file)
@@ -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);