From 1261364dd1f3000110b90ea79c09cd272f93fede Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Mon, 2 May 2005 08:21:41 +0000
Subject: [PATCH] - Patch #21751 by crunchywhelch: added missing check_plain()
 when emitting the <category>-tag in RSS feeds.

---
 modules/taxonomy.module          | 2 +-
 modules/taxonomy/taxonomy.module | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index d72be2b6ff3d..0b47a4ec1cfa 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -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;
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index d72be2b6ff3d..0b47a4ec1cfa 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -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;
-- 
GitLab