]> source.dussan.org Git - redmine.git/commitdiff
Always use HTTPS when accessing gravatar.com (#31022).
authorGo MAEDA <maeda@farend.jp>
Fri, 15 Mar 2019 03:14:26 +0000 (03:14 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 15 Mar 2019 03:14:26 +0000 (03:14 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@17948 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/plugins/gravatar/lib/gravatar.rb

index 9ccc6166bfcd7595ee166e21ea32ef047397bd79..7c2fca6d3a25f0024a12ae48365379fabe01b9be 100644 (file)
@@ -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.