From b5a4379dc70fdd1c9f04a15885e238785c99fe64 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 24 Jan 2005 19:34:17 +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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/htdocs/translate.class.php b/htdocs/translate.class.php index 49592afe707..c2479b531cc 100644 --- a/htdocs/translate.class.php +++ b/htdocs/translate.class.php @@ -115,6 +115,18 @@ 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 $str;