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
|
end
|
||||||
|
|
||||||
def escape_attribute(v)
|
def escape_attribute(v)
|
||||||
v.gsub("&", "&")
|
return "" unless v
|
||||||
.gsub("\"", """)
|
|
||||||
.gsub("<", "<")
|
v = v.dup
|
||||||
.gsub(">", ">")
|
v.gsub!("&", "&")
|
||||||
|
v.gsub!("\"", """)
|
||||||
|
v.gsub!("<", "<")
|
||||||
|
v.gsub!(">", ">")
|
||||||
|
v
|
||||||
end
|
end
|
||||||
|
|
||||||
def include_tag(name, attributes)
|
def include_tag(name, attributes)
|
||||||
|
|
Loading…
Reference in New Issue