mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Fixed a potential XSS vulnerability.
SVN:2.0.2[3666]
This commit is contained in:
@@ -312,7 +312,7 @@ abstract class Dashboard
|
|||||||
|
|
||||||
public function Render($oPage, $bEditMode = false, $aExtraParams = array())
|
public function Render($oPage, $bEditMode = false, $aExtraParams = array())
|
||||||
{
|
{
|
||||||
$oPage->add('<h1>'.Dict::S($this->sTitle).'</h1>');
|
$oPage->add('<h1>'.htmlentities(Dict::S($this->sTitle), ENT_QUOTES, 'UTF-8', false).'</h1>');
|
||||||
$oLayout = new $this->sLayoutClass;
|
$oLayout = new $this->sLayoutClass;
|
||||||
$oLayout->Render($oPage, $this->aCells, $bEditMode, $aExtraParams);
|
$oLayout->Render($oPage, $this->aCells, $bEditMode, $aExtraParams);
|
||||||
if (!$bEditMode)
|
if (!$bEditMode)
|
||||||
|
|||||||
Reference in New Issue
Block a user