Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.519
diff -u -p -r1.519 theme.inc
--- includes/theme.inc	31 Aug 2009 19:50:17 -0000	1.519
+++ includes/theme.inc	1 Sep 2009 01:31:37 -0000
@@ -2054,12 +2054,12 @@ function template_preprocess_page(&$vari
 
   // 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()), filter_xss(variable_get('site_name', 'Drupal'), array()));
   }
   else {
-    $head_title = array(variable_get('site_name', 'Drupal'));
+    $head_title = array(filter_xss(variable_get('site_name', 'Drupal'), array()));
     if (variable_get('site_slogan', '')) {
-      $head_title[] = variable_get('site_slogan', '');
+      $head_title[] = filter_xss(variable_get('site_slogan', ''), array());
     }
   }
   $variables['head_title']        = implode(' | ', $head_title);
Index: themes/garland/template.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/garland/template.php,v
retrieving revision 1.28
diff -u -p -r1.28 template.php
--- themes/garland/template.php	29 Aug 2009 04:16:15 -0000	1.28
+++ themes/garland/template.php	1 Sep 2009 01:31:37 -0000
@@ -54,10 +54,10 @@ function garland_preprocess_page(&$vars)
   // Prepare header
   $site_fields = array();
   if (!empty($vars['site_name'])) {
-    $site_fields[] = check_plain($vars['site_name']);
+    $site_fields[] = $vars['site_name'];
   }
   if (!empty($vars['site_slogan'])) {
-    $site_fields[] = check_plain($vars['site_slogan']);
+    $site_fields[] = $vars['site_slogan'];
   }
   $vars['site_title'] = implode(' ', $site_fields);
   if (!empty($site_fields)) {
Index: themes/garland/maintenance-page.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/themes/garland/maintenance-page.tpl.php,v
retrieving revision 1.11
diff -u -p -r1.11 maintenance-page.tpl.php
--- themes/garland/maintenance-page.tpl.php	3 Aug 2009 03:04:34 -0000	1.11
+++ themes/garland/maintenance-page.tpl.php	1 Sep 2009 01:31:37 -0000
@@ -38,10 +38,10 @@
           // Prepare header
           $site_fields = array();
           if ($site_name) {
-            $site_fields[] = check_plain($site_name);
+            $site_fields[] = $site_name;
           }
           if ($site_slogan) {
-            $site_fields[] = check_plain($site_slogan);
+            $site_fields[] = $site_slogan;
           }
           $site_title = implode(' ', $site_fields);
           if ($site_fields) {
