From 3ab9ee5b470bfb488829207df88e5a3595d4f320 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 8 Apr 2014 20:45:48 +0000 Subject: bug 3056: quick search - fix warning; better management of variants and short words git-svn-id: http://piwigo.org/svn/trunk@28128 68402e56-0260-453c-a942-63ccdbb3a9ee --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 9e58d2123..d6fb3959f 100644 --- a/index.php +++ b/index.php @@ -246,7 +246,7 @@ if ( empty($page['is_external']) or !$page['is_external'] ) if (empty($page['items'])) { - $template->append( 'no_search_results', $page['qsearch_details']['q']); + $template->append( 'no_search_results', htmlspecialchars($page['qsearch_details']['q'])); } elseif (!empty($page['qsearch_details']['unmatched_terms'])) { -- cgit v1.2.3