mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:33:58 -06:00
escape gravatar URLs to comply with W3C standards
This fixes an HTML validation error due to & not being properly escaped on the gravatar URLs.
This commit is contained in:
parent
7aecf5f6ef
commit
6084cb969d
@ -332,7 +332,7 @@ class User < ActiveRecord::Base
|
||||
|
||||
def self.gravatar_template(email)
|
||||
email_hash = self.email_hash(email)
|
||||
"//www.gravatar.com/avatar/#{email_hash}.png?s={size}&r=pg&d=identicon"
|
||||
"//www.gravatar.com/avatar/#{email_hash}.png?s={size}&r=pg&d=identicon"
|
||||
end
|
||||
|
||||
# Don't pass this up to the client - it's meant for server side use
|
||||
|
Loading…
Reference in New Issue
Block a user