summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/taxonomy.module3
-rw-r--r--modules/taxonomy/taxonomy.module3
2 files changed, 4 insertions, 2 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index 7697a775f..24df32228 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -1237,7 +1237,8 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
}
if ($names) {
- drupal_set_title($title = implode(', ', $names));
+ $title = check_plain(implode(', ', $names));
+ drupal_set_title($title);
switch ($op) {
case 'page':
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index 7697a775f..24df32228 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -1237,7 +1237,8 @@ function taxonomy_term_page($str_tids = '', $depth = 0, $op = 'page') {
}
if ($names) {
- drupal_set_title($title = implode(', ', $names));
+ $title = check_plain(implode(', ', $names));
+ drupal_set_title($title);
switch ($op) {
case 'page':