mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
FIX: blank page on user page in rare cases
This commit is contained in:
parent
b4c38dbc5a
commit
dba1616762
|
@ -30,10 +30,14 @@ class ExcerptParser < Nokogiri::XML::SAX::Document
|
|||
end
|
||||
|
||||
def escape_attribute(v)
|
||||
v.gsub("&", "&")
|
||||
.gsub("\"", """)
|
||||
.gsub("<", "<")
|
||||
.gsub(">", ">")
|
||||
return "" unless v
|
||||
|
||||
v = v.dup
|
||||
v.gsub!("&", "&")
|
||||
v.gsub!("\"", """)
|
||||
v.gsub!("<", "<")
|
||||
v.gsub!(">", ">")
|
||||
v
|
||||
end
|
||||
|
||||
def include_tag(name, attributes)
|
||||
|
|
Loading…
Reference in New Issue
Block a user