From 758933ae74fa029f066d92a6c090e7f42e792536 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Thu, 23 Feb 2023 15:19:36 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B05849=20use=20the=20new=20\utils::Escaped?= =?UTF-8?q?HtmlDecode=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/displayblock.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/displayblock.class.inc.php b/application/displayblock.class.inc.php index 485680eea..2b41d7c65 100644 --- a/application/displayblock.class.inc.php +++ b/application/displayblock.class.inc.php @@ -1051,7 +1051,7 @@ JS $oPill = PillFactory::MakeForState($sClass, $sStateValue); // N°5849 - Unencode label for ExternalKey attribute because friendlyname is already html encoded thanks to DBObject::GetName() in AttributeExternalKey::GetAllowedValues(). (A fix in this function may have too much impact). if ($oAttDef instanceof AttributeExternalKey) { - $sPillTooltip = htmlspecialchars_decode($sStateLabel, ENT_QUOTES | ENT_DISALLOWED | ENT_HTML5); + $sPillTooltip = utils::EscapedHtmlDecode($sStateLabel); $sPillLabel = $sStateLabel; } else { $sPillTooltip = $sStateLabel;