Escape tag values - there is no reason at all to render things which
might look like HTML tags in a tag value.
This commit is contained in:
parent
253e8a272d
commit
9200520395
2 changed files with 2 additions and 2 deletions
|
@ -1,3 +1,3 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= h(tag[0]) %> = <%= sanitize(auto_link(tag[1])) %></td>
|
<td><%= h(tag[0]) %> = <%= auto_link(h(tag[1])) %></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -68,7 +68,7 @@ atom_feed(:language => I18n.locale, :schema_date => 2009,
|
||||||
td.table :cellpadding => "0" do |table|
|
td.table :cellpadding => "0" do |table|
|
||||||
changeset.tags.sort.each do |tag|
|
changeset.tags.sort.each do |tag|
|
||||||
table.tr do |tr|
|
table.tr do |tr|
|
||||||
tr.td "#{h(tag[0])} = #{sanitize(tag[1])}"
|
tr.td "#{h(tag[0])} = #{auto_link(h(tag[1]))}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue