bugfix
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Mon, 6 Mar 2006 21:38:32 +0000 (21:38 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:34:38 +0000 (00:34 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@33 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/misc.inc.php

index 7a526ec..f68b0d3 100644 (file)
@@ -341,7 +341,7 @@ function formatbody($_text, $format='plain', $flowed=false)
 
     global $banana;
     $url  = $banana->url_regexp;
-    $res  = preg_replace("/(&lt;|&gt;|&quot;)/", " \\1 ", $_text);
+    $res  = preg_replace("/(&lt;|&gt;|&quot;)/", " \\1 ", $res);
     $res  = preg_replace("!$url!ie", "'\\1<a href=\"\\2\" title=\"\\2\">'.cutlink('\\2').'</a>\\3'", $res);
     $res  = preg_replace("/ (&lt;|&gt;|&quot;) /", "\\1", $res);