summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-06-01 18:40:24 +0000
committerDries Buytaert <dries@buytaert.net>2006-06-01 18:40:24 +0000
commit23f643507f72baa42d664008687eb7f63b619697 (patch)
tree3a3c8c0be5f190b6857491bc04cb115b2a52a3db
parent4c27d9e8445db7d802096cd4c8e63a1562d06261 (diff)
downloadbrdo-23f643507f72baa42d664008687eb7f63b619697.tar.gz
brdo-23f643507f72baa42d664008687eb7f63b619697.tar.bz2
- Improved input checking.
-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':