Commit 23f64350 authored by Dries's avatar Dries

- Improved input checking.

parent 4c27d9e8
......@@ -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':
......
......@@ -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':
......
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