diff options
author | Ingo Gottwald <i.gottwald@tomorrow-focus.de> | 2013-04-24 14:39:02 +0200 |
---|---|---|
committer | Ingo Gottwald <i.gottwald@tomorrow-focus.de> | 2013-04-24 14:39:02 +0200 |
commit | 48a7373b9e490522bd98e60f42af45cee9b7a299 (patch) | |
tree | dcf71a20ee383ba5c2cc061cf4054291fd5c9b8c /app/helpers | |
parent | 084335feba072314b7ed44856f50f8fefcab45dd (diff) | |
download | gitlab-ci-48a7373b9e490522bd98e60f42af45cee9b7a299.tar.gz |
Serving gravatar images form an https source
This is safe to run on gitlab-ci http and https servers
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index ff0b669..2b420c9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -4,7 +4,7 @@ module ApplicationHelper end def gravatar_icon(user_email = '', size = 40) - gravatar_url = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm' + gravatar_url = 'https://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm' user_email.strip! sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size end |