From 09a60da7a0cc2dc87a450dbaa9e68acbb7f99fb9 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Sat, 23 Nov 2002 10:32:05 +0000 Subject: [PATCH] =?UTF-8?q?Espaces=20nuisibles=20dans=20le=20cas=20de=20".?= =?UTF-8?q?..=20{=C2=AB=20OK=20=C2=BB}."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc_texte.php3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3 index fccf26bf22..f840295020 100644 --- a/ecrire/inc_texte.php3 +++ b/ecrire/inc_texte.php3 @@ -217,7 +217,7 @@ function couper($texte, $long) { $texte = ereg_replace("\[\[([^]]|\][^]])*\]\]", "", $texte); // supprimer les codes typos - $texte = strtr($texte,"{}"," "); + $texte = ereg_replace("[{}]", "", $texte); $texte2 = substr($texte." ", 0, $long); $texte2 = ereg_replace("([^[:space:]][[:space:]]+)[^[:space:]]*$", "\\1", $texte2); -- GitLab