mirror of
https://github.com/redmine/redmine.git
synced 2025-11-07 22:05:56 +01:00
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
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# frozen_string_literal: false
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require 'digest/md5'
|
require 'digest/md5'
|
||||||
require 'cgi'
|
require 'cgi'
|
||||||
@@ -63,7 +63,7 @@ module GravatarHelper
|
|||||||
|
|
||||||
# Returns the base Gravatar URL for the given email hash
|
# Returns the base Gravatar URL for the given email hash
|
||||||
def gravatar_api_url(hash)
|
def gravatar_api_url(hash)
|
||||||
"//www.gravatar.com/avatar/#{hash}"
|
'https://www.gravatar.com/avatar/' + hash.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
# Return the gravatar URL for the given email address.
|
# Return the gravatar URL for the given email address.
|
||||||
|
|||||||
Reference in New Issue
Block a user