]> source.dussan.org Git - redmine.git/commitdiff
Removes invalid attributes from gravatar img tag.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Mar 2017 08:55:13 +0000 (08:55 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 5 Mar 2017 08:55:13 +0000 (08:55 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@16372 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/plugins/gravatar/lib/gravatar.rb

index f614f03549909fdf738b226b0abe5d1d50befc82..5d9cda3405287ce2d2ff68920ab3a3c732d01bae 100644 (file)
@@ -56,7 +56,7 @@ module GravatarHelper
       # double the size for hires displays
       options[:srcset] = "#{gravatar_url(email, options.merge(size: options[:size].to_i * 2))} 2x"
 
-      image_tag src, options
+      image_tag src, options.except(:rating, :size, :default, :ssl)
     end
     
     # Returns the base Gravatar URL for the given email hash