From afbd910722cc479ccf653e37d2bc035460beb146 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sun, 26 Jan 2014 23:08:40 +0000 Subject: meta-description header double-escaped --- includes/functions/functions_print.php | 16 ++++++++-------- library/WT/Controller/Page.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/includes/functions/functions_print.php b/includes/functions/functions_print.php index c902b5265e..444699ad75 100644 --- a/includes/functions/functions_print.php +++ b/includes/functions/functions_print.php @@ -227,16 +227,16 @@ function print_pedigree_person($person, $style=1, $count=0, $personcount="1") { // now added as a function here. function header_links($META_DESCRIPTION, $META_ROBOTS, $META_GENERATOR, $LINK_CANONICAL) { - $header_links=''; - if (!empty($LINK_CANONICAL)) { - $header_links.= ''; + $header_links = ''; + if ($LINK_CANONICAL) { + $header_links .= ''; } - if (!empty($META_DESCRIPTION)) { - $header_links.= ''; + if ($META_DESCRIPTION) { + $header_links .= ''; } - $header_links.= ''; - if (!empty($META_GENERATOR)) { - $header_links.= ''; + $header_links .= ''; + if ($META_GENERATOR) { + $header_links .= ''; } return $header_links; } diff --git a/library/WT/Controller/Page.php b/library/WT/Controller/Page.php index 3bfee79c14..3c654b1605 100644 --- a/library/WT/Controller/Page.php +++ b/library/WT/Controller/Page.php @@ -137,7 +137,7 @@ class WT_Controller_Page extends WT_Controller_Base { $META_ROBOTS = $this->meta_robots; $META_DESCRIPTION = WT_GED_ID ? get_gedcom_setting(WT_GED_ID, 'META_DESCRIPTION') : ''; if (!$META_DESCRIPTION) { - $META_DESCRIPTION = WT_TREE_TITLE; + $META_DESCRIPTION = strip_tags(WT_TREE_TITLE); } $META_GENERATOR = WT_WEBTREES . ' ' . WT_VERSION . ' - ' . WT_WEBTREES_URL; $META_TITLE = WT_GED_ID ? get_gedcom_setting(WT_GED_ID, 'META_TITLE') : ''; -- cgit v1.3