X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmime.php;h=57bdf2f2a9a5d66029a46dafffe82f14bd4eca88;hb=79fa5643ae4d208ce99327afb51ee450b908660e;hp=1d7f0321136923d0039f953174bf4180e9dceb7a;hpb=6c99d1de81366bceab6c9d6cf12179eedc81f9bc;p=squirrelmail.git
diff --git a/functions/mime.php b/functions/mime.php
index 1d7f0321..57bdf2f2 100644
--- a/functions/mime.php
+++ b/functions/mime.php
@@ -6,7 +6,7 @@
* This contains the functions necessary to detect and decode MIME
* messages.
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright 1999-2011 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
@@ -57,19 +57,20 @@ function mime_structure ($bodystructure, $flags=array()) {
$read = trim(substr ($read, 0, -1));
$i = 0;
$msg = Message::parseStructure($read,$i);
+
if (!is_object($msg)) {
global $color, $mailbox;
- /* removed urldecode because $_GET is auto urldecoded ??? */
displayPageHeader( $color, $mailbox );
$errormessage = _("SquirrelMail could not decode the bodystructure of the message");
$errormessage .= '
'._("The bodystructure provided by your IMAP server:").'
';
$errormessage .= '
' . htmlspecialchars($read) . ''; - plain_error_message( $errormessage, $color ); + plain_error_message( $errormessage ); echo '