diff options
Diffstat (limited to 'includes/theme.inc')
-rw-r--r-- | includes/theme.inc | 6 |
1 files changed, 3 insertions, 3 deletions
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); |