aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/batch_manager.php2
-rw-r--r--index.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/admin/batch_manager.php b/admin/batch_manager.php
index a93fffda2..bd64437c8 100644
--- a/admin/batch_manager.php
+++ b/admin/batch_manager.php
@@ -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'];
}
diff --git a/index.php b/index.php
index 1f524ed17..0e4f34ea4 100644
--- a/index.php
+++ b/index.php
@@ -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']));
}
}