From b4caa97e69091fbee7112c43cdf80601d4a63c80 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 20 Jan 2021 09:57:23 +0100 Subject: [PATCH] Replace utils::HtmlEntities() with utils::EscapeHtml() in the global search and quick create blocks --- .../UI/Base/Component/GlobalSearch/GlobalSearchHelper.php | 2 +- .../UI/Base/Component/QuickCreate/QuickCreateHelper.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/application/UI/Base/Component/GlobalSearch/GlobalSearchHelper.php b/sources/application/UI/Base/Component/GlobalSearch/GlobalSearchHelper.php index 964688069..9ed2d0797 100644 --- a/sources/application/UI/Base/Component/GlobalSearch/GlobalSearchHelper.php +++ b/sources/application/UI/Base/Component/GlobalSearch/GlobalSearchHelper.php @@ -112,7 +112,7 @@ class GlobalSearchHelper // Add HTML label if missing if(!isset($aHistoryEntries[$iIdx]['label_html'])) { - $aHistoryEntries[$iIdx]['label_html'] = utils::HtmlEntities($aHistoryEntries[$iIdx]['query']); + $aHistoryEntries[$iIdx]['label_html'] = utils::EscapeHtml($aHistoryEntries[$iIdx]['query']); } // Set absolute URL diff --git a/sources/application/UI/Base/Component/QuickCreate/QuickCreateHelper.php b/sources/application/UI/Base/Component/QuickCreate/QuickCreateHelper.php index 656b30249..950426c4f 100644 --- a/sources/application/UI/Base/Component/QuickCreate/QuickCreateHelper.php +++ b/sources/application/UI/Base/Component/QuickCreate/QuickCreateHelper.php @@ -108,7 +108,7 @@ class QuickCreateHelper // Add class label if(!isset($aHistoryEntries[$iIdx]['label_html'])) { - $aHistoryEntries[$iIdx]['label_html'] = utils::HtmlEntities(MetaModel::GetName($sClass)); + $aHistoryEntries[$iIdx]['label_html'] = utils::EscapeHtml(MetaModel::GetName($sClass)); } // Add url