diff options
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/search/main.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/search/main.php b/core/include/search/main.php index 9e7c0a7..de7be9a 100644 --- a/core/include/search/main.php +++ b/core/include/search/main.php @@ -29,7 +29,7 @@ if($search = HTTP::GET('q')) { try { if (!$posts = $PostRepository->search($search, $filter, $site_size, $offset)) { - $message = $Language->text('search_no_results', escapeHTML($search)); + $message = $Language->text('search_no_results', htmlspecialchars($search)); } } catch(PDOException $Exception) { $message = $Exception->getMessage(); @@ -84,7 +84,7 @@ if(!empty($posts)) { $MainTemplate = Template\Factory::build('main'); $MainTemplate->set('HTML', $ResultTemplate); $MainTemplate->set('HEAD', [ - 'NAME' => $Language->text('title_search_results', escapeHTML($search)), + 'NAME' => $Language->text('title_search_results', htmlspecialchars($search)), 'PERM' => Application::getURL('search/') ]); } |