From: Jean-Philippe Lang Date: Sun, 5 Mar 2017 08:55:13 +0000 (+0000) Subject: Removes invalid attributes from gravatar img tag. X-Git-Tag: 3.4.0~267 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2503731d3c1fb07257aeefd8e42120014fca8529;p=redmine.git Removes invalid attributes from gravatar img tag. git-svn-id: http://svn.redmine.org/redmine/trunk@16372 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/plugins/gravatar/lib/gravatar.rb b/lib/plugins/gravatar/lib/gravatar.rb index f614f0354..5d9cda340 100644 --- a/lib/plugins/gravatar/lib/gravatar.rb +++ b/lib/plugins/gravatar/lib/gravatar.rb @@ -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