From fde2c92e7ace065d5caf34e46b9aeb1e43744757 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 Jan 2005 19:46:58 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Si=20le=20message=20traduit=20contient?= =?UTF-8?q?=20des=20<=20ou=20>,=20il=20est=20mal=20affich=E9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/translate.class.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/htdocs/translate.class.php b/htdocs/translate.class.php index c2479b531cc..ab7a88150b6 100644 --- a/htdocs/translate.class.php +++ b/htdocs/translate.class.php @@ -115,19 +115,7 @@ class Translate { function trans($str, $param1='', $param2='', $param3='') { if ($this->tab_translate[$str]) { // Si la traduction est disponible - if ($param1) { - $param1=ereg_replace("<","<",$param1); - $param1=ereg_replace(">",">",$param1); - } - if ($param2) { - $param2=ereg_replace("<","<",$param2); - $param2=ereg_replace(">",">",$param2); - } - if ($param3) { - $param3=ereg_replace("<","<",$param3); - $param3=ereg_replace(">",">",$param3); - } - return sprintf($this->tab_translate[$str],$param1,$param2,$param3); + return sprintf($this->tab_translate[$str],htmlentities($param1),htmlentities($param2),htmlentities($param3)); } return $str; }