summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorIngo Gottwald <i.gottwald@tomorrow-focus.de>2013-04-24 14:39:02 +0200
committerIngo Gottwald <i.gottwald@tomorrow-focus.de>2013-04-24 14:39:02 +0200
commit48a7373b9e490522bd98e60f42af45cee9b7a299 (patch)
treedcf71a20ee383ba5c2cc061cf4054291fd5c9b8c /app/helpers
parent084335feba072314b7ed44856f50f8fefcab45dd (diff)
downloadgitlab-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.rb2
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