From 3425b39cd7801464179200036dae16b3327ffa4c Mon Sep 17 00:00:00 2001 From: fisharebest Date: Thu, 7 Oct 2010 07:25:01 +0000 Subject: Remove unnecessary character set checks --- includes/controllers/individual_ctrl.php | 4 ++-- includes/controllers/search_ctrl.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/controllers') diff --git a/includes/controllers/individual_ctrl.php b/includes/controllers/individual_ctrl.php index 8119715905..c842fabc4e 100644 --- a/includes/controllers/individual_ctrl.php +++ b/includes/controllers/individual_ctrl.php @@ -318,13 +318,13 @@ class IndividualController extends BaseController { $name = $this->indi->getFullName(); if (WT_USE_LIGHTBOX) { - print "" . "\n"; + print "" . "\n"; } else if (!$USE_MEDIA_VIEWER && $imgsize) { $result .= ""; } else { $result .= ""; } - $result .= "\"".PrintReady(htmlspecialchars(strip_tags($name),"; + $result .= "\"".PrintReady(htmlspecialchars(strip_tags($name)))."\""; $result .= ""; return $result; } diff --git a/includes/controllers/search_ctrl.php b/includes/controllers/search_ctrl.php index 35e126cde8..e06af63d9b 100644 --- a/includes/controllers/search_ctrl.php +++ b/includes/controllers/search_ctrl.php @@ -121,7 +121,7 @@ class SearchController extends BaseController { $this->myquery=""; } else { $this->query = $_REQUEST["query"]; - $this->myquery = htmlspecialchars($this->query,ENT_COMPAT,'UTF-8'); + $this->myquery = htmlspecialchars($this->query); } } if (isset ($_REQUEST["replace"])) { -- cgit v1.3