Filter search box before display

This commit is contained in:
DM42.Net (Matt Dent) 2018-11-13 17:20:21 -05:00
parent adf4782076
commit 35e66770be

View File

@ -1075,7 +1075,7 @@ function micropro($contact, $redirect = false, $class = '', $mode = false) {
function search($s,$id='search-box',$url='/search',$save = false) {
return replace_macros(get_markup_template('searchbox.tpl'),array(
'$s' => $s,
'$s' => htmlspecialchars($s),
'$id' => $id,
'$action_url' => z_root() . $url,
'$search_label' => t('Search'),