Skip to content

Commit

Permalink
Merge pull request #3625 from chr1831/master
Browse files Browse the repository at this point in the history
Use secure Gravatar url when https is set to true in the configuration
  • Loading branch information
dzaporozhets committed Apr 19, 2013
2 parents a855718 + 1a92ae9 commit b20bd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -37,7 +37,7 @@ def gravatar_icon(user_email = '', size = nil)
if !Gitlab.config.gravatar.enabled || user_email.blank?
'no_avatar.png'
else
gravatar_url = request.ssl? ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url
gravatar_url = request.ssl? || Gitlab.config.gitlab.https ? Gitlab.config.gravatar.ssl_url : Gitlab.config.gravatar.plain_url
user_email.strip!
sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size
end
Expand Down

0 comments on commit b20bd1b

Please sign in to comment.