diff --git a/Rocksolid_Light/rocksolid/lib/message.inc.php b/Rocksolid_Light/rocksolid/lib/message.inc.php index c7e5024..f724717 100644 --- a/Rocksolid_Light/rocksolid/lib/message.inc.php +++ b/Rocksolid_Light/rocksolid/lib/message.inc.php @@ -49,12 +49,12 @@ function message_parse($rawmessage) // We have multible bodies, so we split the message into its parts $boundary = "--" . $message->header->content_type_boundary; // lets find the first part - while ($rawmessage[$i] != $boundary) { + $i ++; + // Missing boundary line? if(!$rawmessage[$i]) { break; } - $i ++; } $i ++; $part = array(); @@ -837,6 +837,12 @@ function message_show($group, $id, $attachment = 0, $article_data = false, $maxl return "no-archive"; } + if(isset($head->content_type[0])) { + if(!strpos($head->content_type[0], "/")) { + echo '
(message #' . $head->number . ' not displayed - malformed header)