Project

General

Profile

Patch #2921 » gravatar_patch_v2.diff

Fabian Buch, 2009-03-09 21:44

View differences:

vendor/plugins/gravatar/lib/gravatar.rb (working copy)
email_hash = Digest::MD5.hexdigest(email)
options = DEFAULT_OPTIONS.merge(options)
options[:default] = CGI::escape(options[:default]) unless options[:default].nil?
returning "http://www.gravatar.com/avatar.php?gravatar_id=#{email_hash}" do |url|
returning "http://www.gravatar.com/avatar/#{email_hash}?" do |url|
[:rating, :size, :default].each do |opt|
unless options[opt].nil?
value = h(options[opt])
......
end
end
end
(3-3/3)