From bbd636740eecefcb596ce2ad51307263acbb791b Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Thu, 23 May 2013 09:34:51 -0400 Subject: [PATCH] Fix fatal error when parsing UUencoded messages (#1489119) --- CHANGELOG | 1 + program/lib/Roundcube/rcube_message.php | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index f671629..6e16d06 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Fix fatal error when parsing UUencoded messages (#1489119) - Change Reply-All button label/title when mailing list is detected (#1488938) - Fix SMTP connection using IPv6 address in smtp_server option (#1489024) - Added attachment_reminder plugin diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index a42d3fb..797ca18 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -785,7 +785,7 @@ $uupart->size = strlen($uupart->body); $uupart->mime_id = 'uu.' . $part->mime_id . '.' . $pid; - $ctype = rcube_mime::content_type($uupart->body, $uupart->filename, 'application/octet-stream', true); + $ctype = rcube_mime::file_content_type($uupart->body, $uupart->filename, 'application/octet-stream', true); $uupart->mimetype = $ctype; list($uupart->ctype_primary, $uupart->ctype_secondary) = explode('/', $ctype); -- Gitblit v1.9.1