Skip to content

Commit

Permalink
Email was not being trimed/lowercased when calling gravatar.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilkoAtWork authored and eamodio committed Dec 6, 2018
1 parent 9759e50 commit 4e801bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git/models/commit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export abstract class GitCommit {

gravatar = Uri.parse(
`https://www.gravatar.com/avatar/${
this.email ? Strings.md5(this.email, 'hex') : '00000000000000000000000000000000'
this.email ? Strings.md5(this.email.trim().toLowerCase(), 'hex') : '00000000000000000000000000000000'
}.jpg?s=${size}&d=${fallback}`
);
gravatarCache.set(key, gravatar);
Expand Down

0 comments on commit 4e801bc

Please sign in to comment.