X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Fmime.php;h=ca7f836c0affe9722c52f5b89ecc92b61eea8892;hb=969c1e9fcec1fb8c0e67004dc5f22aee9cc4d003;hp=58f29884992b74f2bf83d3be8224b4e4c107b173;hpb=bc6c0fbaad6d3280966155d13783f18e8b7a3d87;p=squirrelmail.git
diff --git a/functions/mime.php b/functions/mime.php
index 58f29884..ca7f836c 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-2007 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 '