Commit 1261364d authored by Dries's avatar Dries
Browse files

- Patch #21751 by crunchywhelch: added missing check_plain() when emitting the...

- Patch #21751 by crunchywhelch: added missing check_plain() when emitting the <category>-tag in RSS feeds.
parent 8bfcf2c2
......@@ -1180,7 +1180,7 @@ function taxonomy_rss_item($node) {
$terms = taxonomy_node_get_terms($node->nid);
foreach ($terms as $term) {
$output[] = array('key' => 'category',
'value' => $term->name,
'value' => check_plain($term->name),
'attributes' => array('domain' => url('taxonomy/term/'.$term->tid, NULL, NULL, TRUE)));
}
return $output;
......
......@@ -1180,7 +1180,7 @@ function taxonomy_rss_item($node) {
$terms = taxonomy_node_get_terms($node->nid);
foreach ($terms as $term) {
$output[] = array('key' => 'category',
'value' => $term->name,
'value' => check_plain($term->name),
'attributes' => array('domain' => url('taxonomy/term/'.$term->tid, NULL, NULL, TRUE)));
}
return $output;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment