From f743971c9348a29077ceaa7c711522ba134b0fac Mon Sep 17 00:00:00 2001 From: bdalsass <95754414+bdalsass@users.noreply.github.com> Date: Tue, 24 Jan 2023 16:33:02 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B05914=20-=20Wrong=20encoding=20in=20modul?= =?UTF-8?q?es=20configuration=20editor=20(#392)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- datamodels/2.x/itop-config/config.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/datamodels/2.x/itop-config/config.php b/datamodels/2.x/itop-config/config.php index bda472d6ca..a6fb3d9332 100644 --- a/datamodels/2.x/itop-config/config.php +++ b/datamodels/2.x/itop-config/config.php @@ -178,9 +178,7 @@ try { } } - - $sConfigEscaped = utils::EscapeHtml($sConfig); - $sOriginalConfigEscaped = utils::EscapeHtml($sOriginalConfig); + // (remove EscapeHtml) N°5914 - Wrong encoding in modules configuration editor $oP->AddUiBlock(new Html('
'.Dict::S('config-edit-intro').'
')); $oForm = new Form(); @@ -197,8 +195,8 @@ try { $oForm->AddSubBlock($oSubmitButton); //--- Config editor - $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('prev_config', $sOriginalConfigEscaped, 'prev_config')); - $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('new_config', $sConfigEscaped)); + $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('prev_config', $sOriginalConfig, 'prev_config')); + $oForm->AddSubBlock(InputUIBlockFactory::MakeForHidden('new_config', $sConfig)); $oForm->AddHtml(""); $oP->AddUiBlock($oForm);