Example case was a tag with & in its name, which resulted in a malformed
rss feed.
if ($template->query(name => "categories")) {
# It's an rss/atom template. Add any categories.
if (defined $tags && %$tags) {
- $template->param(categories => [map { category => tagname($_) },
- sort keys %$tags]);
+ eval q{use HTML::Entities};
+ $template->param(categories =>
+ [map { category => HTML::Entities::encode_entities(tagname($_)) },
+ sort keys %$tags]);
}
}
}
* Fix typo in Danish translation of shortcuts page that caused expoentional
regexp blowup.
* Fix escaping of html entities in permalinks.
+ * Fix escaping of html entities in tag names.
-- Joey Hess <joeyh@debian.org> Tue, 19 Jul 2011 11:22:52 -0400