Explorar o código

Fixed a potential XSS vulnerability.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3662 a333f486-631f-4898-b8df-5754b55c2be0
dflaven %!s(int64=10) %!d(string=hai) anos
pai
achega
f637419b58
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      application/dashboard.class.inc.php

+ 1 - 1
application/dashboard.class.inc.php

@@ -312,7 +312,7 @@ abstract class Dashboard
 	
 	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->Render($oPage, $this->aCells, $bEditMode, $aExtraParams);
 		if (!$bEditMode)