From 3d14aedcd8391f9613e8b2fb7c72abb03c1965d9 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 18 Mar 2021 16:48:38 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B03581=20-=20Dashlet:=20Fix=20double-encod?= =?UTF-8?q?ing=20on=20DashletPlainText?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/dashlet.class.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/dashlet.class.inc.php b/application/dashlet.class.inc.php index 40eadd85b..e22b02525 100644 --- a/application/dashlet.class.inc.php +++ b/application/dashlet.class.inc.php @@ -848,7 +848,7 @@ class DashletPlainText extends Dashlet */ public function Render($oPage, $bEditMode = false, $aExtraParams = array()) { - $sText = utils::HtmlEntities($this->aProperties['text']); + $sText = $this->aProperties['text']; $sText = str_replace(array("\r\n", "\n", "\r"), "
", $sText); $sId = 'plaintext_'.($bEditMode ? 'edit_' : '').$this->sId; @@ -1891,7 +1891,7 @@ class DashletHeaderStatic extends Dashlet */ public function Render($oPage, $bEditMode = false, $aExtraParams = array()) { - $sTitle = utils::HtmlEntities($this->aProperties['title']); + $sTitle = $this->aProperties['title']; $sIcon = $this->aProperties['icon']; $oIconSelect = $this->oModelReflection->GetIconSelectionField('icon');