#504: ignore badly encoded characters
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 14 Oct 2006 19:15:07 +0000 (19:15 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:11 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@144 9869982d-c50d-0410-be91-f2a2ec7c7c7b

Changelog
banana/post.inc.php

index f01a927..b99b35a 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,8 @@
+Sat, 14 Oct 2006                    Florent Bruneau <florent.bruneau@m4x.org>
+
+       * Bugfix: Signature encoding in replies
+       * Bugfix: Don't lose badly encoded messages
+
 ================================================================================
 VERSION 1.4
 
index 3db1818..c3e3402 100644 (file)
@@ -211,7 +211,7 @@ class BananaPost
     {
         if (isset($this->headers['content-type'])
                 && preg_match('!charset="?([^;"]*)"?\s*(;|$)?!', $this->headers['content-type'], $matches)) {
-            $body = iconv($matches[1], 'utf-8', $this->body);
+            $body = iconv($matches[1], 'utf-8//IGNORE', $this->body);
             if (strlen($body) == 0) {
                 return false;
             }