mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
bug 3148: quick search fix html special chars
git-svn-id: http://piwigo.org/svn/trunk@29852 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -514,7 +514,7 @@ if (isset($_SESSION['bulk_manager_filter']['search']) &&
|
||||
$res = get_quick_search_results_no_cache($_SESSION['bulk_manager_filter']['search']['q'], array('permissions'=>false));
|
||||
if (!empty($res['items']) && !empty($res['qs']['unmatched_terms']))
|
||||
{
|
||||
$template->assign('no_search_results', $res['qs']['unmatched_terms']);
|
||||
$template->assign('no_search_results', array_map('htmlspecialchars', $res['qs']['unmatched_terms']) );
|
||||
}
|
||||
$filter_sets[] = $res['items'];
|
||||
}
|
||||
|
||||
@@ -245,7 +245,7 @@ if ( empty($page['is_external']) or !$page['is_external'] )
|
||||
}
|
||||
elseif (!empty($page['qsearch_details']['unmatched_terms']))
|
||||
{
|
||||
$template->assign( 'no_search_results', array_map($page['qsearch_details']['unmatched_terms'], 'htmlspecialchars'));
|
||||
$template->assign( 'no_search_results', array_map('htmlspecialchars', $page['qsearch_details']['unmatched_terms']));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user