Cosmetics: regression due to an unnecessary protection against XSS attacks

SVN:trunk[1519]
This commit is contained in:
Romain Quetiez
2011-08-25 16:35:38 +00:00
parent 2ee85dd407
commit e515dfb434

View File

@@ -174,25 +174,25 @@ h3.clickable.open {
}
public function info($sText)
{
$this->add("<p class=\"info\">".htmlentities($sText, ENT_COMPAT, 'UTF-8')."</p>\n");
$this->add("<p class=\"info\">$sText</p>\n");
$this->log_info($sText);
}
public function ok($sText)
{
$this->add("<p class=\"ok\">".htmlentities($sText, ENT_COMPAT, 'UTF-8')."</p>\n");
$this->add("<p class=\"ok\">$sText</p>\n");
$this->log_ok($sText);
}
public function warning($sText)
{
$this->add("<p class=\"warning\">".htmlentities($sText, ENT_COMPAT, 'UTF-8')."</p>\n");
$this->add("<p class=\"warning\">$sText</p>\n");
$this->log_warning($sText);
}
public function error($sText)
{
$this->add("<p class=\"error\">".htmlentities($sText, ENT_COMPAT, 'UTF-8')."</p>\n");
$this->add("<p class=\"error\">$sText</p>\n");
$this->log_error($sText);
}