From e5e3d279e299b00890e86f8fa2f4b48ca1ce9948 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 4 Mar 2010 09:03:08 +0000 Subject: - Patch #461938 by Kars-T, Garrett Albright, JamesAn, grendzy: fixed inconsistent use of filter_xss_admin() on () and (). --- includes/theme.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index ebee7255a..f8ebbffb7 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -2259,12 +2259,12 @@ function template_preprocess_html(&$variables) { // Construct page title. if (drupal_get_title()) { - $head_title = array(strip_tags(drupal_get_title()), variable_get('site_name', 'Drupal')); + $head_title = array(strip_tags(drupal_get_title()), check_plain(variable_get('site_name', 'Drupal'))); } else { - $head_title = array(variable_get('site_name', 'Drupal')); + $head_title = array(check_plain(variable_get('site_name', 'Drupal'))); if (variable_get('site_slogan', '')) { - $head_title[] = variable_get('site_slogan', ''); + $head_title[] = filter_xss_admin(variable_get('site_slogan', '')); } } $variables['head_title'] = implode(' | ', $head_title); -- cgit v1.2.3