From 9469681a0c73eef45578d9d6948692d1c43cbc7f Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Tue, 17 Oct 2023 09:12:40 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06777=20-=20Security=20hardening?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/dashboard.class.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/dashboard.class.inc.php b/application/dashboard.class.inc.php index 6747d7872..8229a306f 100644 --- a/application/dashboard.class.inc.php +++ b/application/dashboard.class.inc.php @@ -1193,12 +1193,12 @@ EOF $sOkButtonLabel = Dict::S('UI:Button:Save'); $sCancelButtonLabel = Dict::S('UI:Button:Cancel'); - $sId = addslashes($this->sId); - $sLayoutClass = addslashes($this->sLayoutClass); + $sId = utils::HtmlEntities($this->sId); + $sLayoutClass = utils::HtmlEntities($this->sLayoutClass); $sAutoReload = $this->bAutoReload ? 'true' : 'false'; $sAutoReloadSec = (string) $this->iAutoReloadSec; - $sTitle = addslashes($this->sTitle); - $sFile = addslashes($this->GetDefinitionFile()); + $sTitle = utils::HtmlEntities($this->sTitle); + $sFile = utils::HtmlEntities($this->GetDefinitionFile()); $sUrl = utils::GetAbsoluteUrlAppRoot().'pages/ajax.render.php'; $sReloadURL = $this->GetReloadURL();