From 842549835c466f18b0ecb90ac079369e2359172c Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 14 Oct 2006 19:15:07 +0000 Subject: [PATCH 1/1] #504: ignore badly encoded characters git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@144 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- Changelog | 5 +++++ banana/post.inc.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.1.4