From: x2003bruneau Date: Sat, 14 Oct 2006 19:15:07 +0000 (+0000) Subject: #504: ignore badly encoded characters X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=842549835c466f18b0ecb90ac079369e2359172c;hp=cfeeeada39266e6e4d4c9a9a29fde287855785e2;p=banana.git #504: ignore badly encoded characters git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@144 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/Changelog b/Changelog index f01a927..b99b35a 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,8 @@ +Sat, 14 Oct 2006 Florent Bruneau + + * Bugfix: Signature encoding in replies + * Bugfix: Don't lose badly encoded messages + ================================================================================ VERSION 1.4 diff --git a/banana/post.inc.php b/banana/post.inc.php index 3db1818..c3e3402 100644 --- a/banana/post.inc.php +++ b/banana/post.inc.php @@ -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; }