Bläddra i källkod

Cosmetics: regression due to an unnecessary protection against XSS attacks

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1519 a333f486-631f-4898-b8df-5754b55c2be0
romainq 13 år sedan
förälder
incheckning
213612ad33
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4 4
      setup/setuppage.class.inc.php

+ 4 - 4
setup/setuppage.class.inc.php

@@ -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);
 	}