N°6348 - Hardening code

This commit is contained in:
Eric Espie
2023-06-01 16:44:40 +02:00
parent e3ba826e5d
commit b8f61362f5

View File

@@ -569,8 +569,8 @@ try
if ($sQuery !== $sFullText) {
$sQueryLabel = $sFullText;
}
GlobalSearchHelper::AddQueryToHistory($sQuery, $sQueryIconUrl, $sQueryLabel);
$oP->SetBlockParam('ibo-global-search.sQuery', $sQuery);
GlobalSearchHelper::AddQueryToHistory(utils::EscapeHtml($sQuery), $sQueryIconUrl, $sQueryLabel);
$oP->SetBlockParam('ibo-global-search.sQuery', utils::EscapeHtml($sQuery));
// Check the needle length
$iMinLenth = MetaModel::GetConfig()->Get('full_text_needle_min');