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)
|
def self.gravatar_template(email)
|
||||||
email_hash = self.email_hash(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
|
end
|
||||||
|
|
||||||
# Don't pass this up to the client - it's meant for server side use
|
# Don't pass this up to the client - it's meant for server side use
|
||||||
|
|
Loading…
Reference in New Issue