summaryrefslogtreecommitdiff
path: root/themes/garland
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-03-04 09:03:08 +0000
committerDries Buytaert <dries@buytaert.net>2010-03-04 09:03:08 +0000
commite5e3d279e299b00890e86f8fa2f4b48ca1ce9948 (patch)
tree1270c28380af0f84d8288d77a63dd1e788bf9c26 /themes/garland
parentd33bad9fa1416b98bd5544f42ed1f5790de2e725 (diff)
downloadbrdo-e5e3d279e299b00890e86f8fa2f4b48ca1ce9948.tar.gz
brdo-e5e3d279e299b00890e86f8fa2f4b48ca1ce9948.tar.bz2
- Patch #461938 by Kars-T, Garrett Albright, JamesAn, grendzy: fixed inconsistent use of filter_xss_admin() on () and ().
Diffstat (limited to 'themes/garland')
-rw-r--r--themes/garland/maintenance-page.tpl.php4
-rw-r--r--themes/garland/template.php8
2 files changed, 6 insertions, 6 deletions
diff --git a/themes/garland/maintenance-page.tpl.php b/themes/garland/maintenance-page.tpl.php
index 0a4e077ce..97120d5b0 100644
--- a/themes/garland/maintenance-page.tpl.php
+++ b/themes/garland/maintenance-page.tpl.php
@@ -35,10 +35,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) {
diff --git a/themes/garland/template.php b/themes/garland/template.php
index f25b13cc2..975bc55f5 100644
--- a/themes/garland/template.php
+++ b/themes/garland/template.php
@@ -96,10 +96,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)) {
@@ -108,8 +108,8 @@ function garland_preprocess_page(&$vars) {
$vars['site_html'] = implode(' ', $site_fields);
// Set a variable for the site name title and logo alt attributes text.
- $slogan_text = filter_xss_admin(variable_get('site_slogan', ''));
- $site_name_text = filter_xss_admin(variable_get('site_name', 'Drupal'));
+ $slogan_text = $vars['site_slogan'];
+ $site_name_text = $vars['site_name'];
$vars['site_name_and_slogan'] = $site_name_text . ' ' . $slogan_text;
}