浏览代码

Email was not being trimed/lowercased when calling gravatar.

main
Ian Wilkinson 6 年前
committed by Eric Amodio
父节点
当前提交
4e801bc73a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/git/models/commit.ts

+ 1
- 1
src/git/models/commit.ts 查看文件

@ -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);

正在加载...
取消
保存