Commit 5a849ea7 authored by maeda's avatar maeda

Always use HTTPS when accessing gravatar.com (#31022).

Patch by Go MAEDA.


git-svn-id: https://svn.redmine.org/redmine/trunk@17948 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 99aff074
# 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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment