diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 9d10749e1..b62515249 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -569,7 +569,7 @@ EOF // Make sure that Internet Explorer renders the page using its latest/highest/greatest standards ! echo "\n"; echo "\n"; - echo "{$this->s_title}\n"; + echo "".htmlentities($this->s_title, ENT_QUOTES, 'UTF-8')."\n"; echo $this->get_base_tag(); // Stylesheets MUST be loaded before any scripts otherwise // jQuery scripts may face some spurious problems (like failing on a 'reload') @@ -750,7 +750,7 @@ EOF echo '
'; echo ''; echo ' '; echo '
'; echo '
pin
'; @@ -772,7 +772,7 @@ EOF echo '
'; echo '
'; echo self::FilterXSS($sApplicationBanner); - echo ' '; diff --git a/application/itopwizardwebpage.class.inc.php b/application/itopwizardwebpage.class.inc.php index 3b03af1b6..b2207a678 100644 --- a/application/itopwizardwebpage.class.inc.php +++ b/application/itopwizardwebpage.class.inc.php @@ -48,7 +48,7 @@ class iTopWizardWebPage extends iTopWebPage $sStyle = ($iIndex == $this->m_iCurrentStep) ? 'wizActiveStep' : 'wizStep'; $aSteps[] = "
$sStepTitle
"; } - $sWizardHeader = "

{$this->s_title}

\n".implode("
", $aSteps)."
\n"; + $sWizardHeader = "

".htmlentities($this->s_title, ENT_QUOTES, 'UTF-8')."

\n".implode("
", $aSteps)."
\n"; $this->s_content = "$sWizardHeader
".$this->s_content."
"; parent::output(); } diff --git a/application/webpage.class.inc.php b/application/webpage.class.inc.php index 825b44cab..0dd97f9e2 100644 --- a/application/webpage.class.inc.php +++ b/application/webpage.class.inc.php @@ -366,7 +366,7 @@ class WebPage echo "\n"; echo "\n"; echo "\n"; - echo "{$this->s_title}\n"; + echo "".htmlentities($this->s_title, ENT_QUOTES, 'UTF-8')."\n"; echo $this->get_base_tag(); foreach($this->a_linked_scripts as $s_script) { diff --git a/setup/setuppage.class.inc.php b/setup/setuppage.class.inc.php index 58d6c762f..562b46a49 100644 --- a/setup/setuppage.class.inc.php +++ b/setup/setuppage.class.inc.php @@ -245,7 +245,7 @@ h3.clickable.open { public function output() { - $this->s_content = "

 {$this->s_title}

\n
{$this->s_content}\n
\n"; + $this->s_content = "

 ".htmlentities($this->s_title, ENT_QUOTES, 'UTF-8')."

\n
{$this->s_content}\n
\n"; return parent::output(); }