From cb9331c41413ea62755bee00ba5dd24dd3a4f6b0 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Sun, 2 May 2010 18:52:46 +0000 Subject: [PATCH] - Proper usage of htmlentities: specifiy the target character set ! SVN:trunk[391] --- application/itopwebpage.class.inc.php | 2 +- application/nicewebpage.class.inc.php | 2 +- core/bulkchange.class.inc.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 2c8ef4fea..b5758307d 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -335,7 +335,7 @@ EOF $i = 0; foreach($m_aTabs as $sTabName => $sTabContent) { - $sTabs .= "
  • ".htmlentities($sTabName)."
  • \n"; + $sTabs .= "
  • ".htmlentities($sTabName, ENT_QUOTES, 'UTF-8')."
  • \n"; $i++; } $sTabs .= "\n"; diff --git a/application/nicewebpage.class.inc.php b/application/nicewebpage.class.inc.php index ae1ab935f..26e729e93 100644 --- a/application/nicewebpage.class.inc.php +++ b/application/nicewebpage.class.inc.php @@ -59,7 +59,7 @@ class NiceWebPage extends WebPage foreach($aChoices as $sKey => $sValue) { $sSelected = ($sKey == $sDefaultValue) ? " SELECTED" : ""; - $this->add(""); + $this->add(""); } $this->add(""); } diff --git a/core/bulkchange.class.inc.php b/core/bulkchange.class.inc.php index c063a9bd1..7b001124a 100644 --- a/core/bulkchange.class.inc.php +++ b/core/bulkchange.class.inc.php @@ -47,7 +47,7 @@ abstract class CellChangeSpec } else { - return htmlentities($value); + return htmlentities($value, ENT_QUOTES, 'UTF-8'); } }