diff options
author | Go MAEDA <maeda@farend.jp> | 2019-03-15 03:14:26 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-03-15 03:14:26 +0000 |
commit | e050625a29bbc3d29b0de18d8df1d9635c24be59 (patch) | |
tree | a096fc9f5690185c867068b98c380f2f1784c426 | |
parent | 5861160ffc350a97b5ff41465fbd7e03008853e4 (diff) | |
download | redmine-e050625a29bbc3d29b0de18d8df1d9635c24be59.tar.gz redmine-e050625a29bbc3d29b0de18d8df1d9635c24be59.zip |
Always use HTTPS when accessing gravatar.com (#31022).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@17948 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | lib/plugins/gravatar/lib/gravatar.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/plugins/gravatar/lib/gravatar.rb b/lib/plugins/gravatar/lib/gravatar.rb index 9ccc6166b..7c2fca6d3 100644 --- a/lib/plugins/gravatar/lib/gravatar.rb +++ b/lib/plugins/gravatar/lib/gravatar.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'digest/md5' require 'cgi' @@ -63,7 +63,7 @@ module GravatarHelper # Returns the base Gravatar URL for the given email hash def gravatar_api_url(hash) - "//www.gravatar.com/avatar/#{hash}" + 'https://www.gravatar.com/avatar/' + hash.to_s end # Return the gravatar URL for the given email address. |