Definitly fix the message truncation bug.
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Tue, 22 May 2007 08:53:02 +0000 (08:53 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:44 +0000 (00:35 +0100)
This bug is caused by a bug in PHP's strip_tags!!!

 Changelog                   |    4 ++++
 banana/message.func.inc.php |    3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@258 9869982d-c50d-0410-be91-f2a2ec7c7c7b

Changelog
banana/message.func.inc.php

index ace0671..32a14d8 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,7 @@
+Thu, 21 May 2007                                       Florent Bruneau <florent.bruneau@m4x.org>
+
+    * Bugfix: message truncation
+
 Fri, 11 May 2007                    Florent Bruneau <florent.bruneau@m4x.org>
 
        * Bugfix: posting messages when canAttach is set
index 011d534..0d29f64 100644 (file)
@@ -204,7 +204,7 @@ function banana_plainTextToHtml($text, $strict = true)
     $text = banana_catchURLs($text);
     $text = banana_catchQuotes($text, $strict);
     $text = banana_catchSignature($text);
-    return banana_cleanHtml('<pre>' . $text . '</pre>');
+    return '<pre>' . $text . '</pre>';
 }
 
 function banana_wrap($text, $base_level = 0, $strict = true)
@@ -373,6 +373,7 @@ function banana_cleanHtml($source, $to_xhtml = false)
             }
             tidy_set_encoding('utf8');
             $source = tidy_repair_string($source);
+
         } else { // Tidy 2.0
             $source = tidy_repair_string($source, $tidy_config, 'utf8');
         }