Try to catch unreadable or incorrect dates (1 Jan 1970) in spoolnews.php.

This commit is contained in:
Retro_Guy 2024-09-29 10:17:13 -07:00
parent 8a3e57db2c
commit a2da48bb86
1 changed files with 5 additions and 0 deletions

View File

@ -3007,6 +3007,11 @@ function check_article_integrity($rawmessage)
$returnval = " Skipping message (date in future): " . $message->header->id . " (" . date('M d H:i:s', $message->header->date) . ")";
return $returnval;
}
// Date is probably 1 Jan 1970
if ($message->header->date < 100) {
$returnval = " Skipping message (date too old): " . $message->header->id . " (" . date('M d H:i:s', $message->header->date) . ")";
return $returnval;
}
// Now we know if the message is a mime-multipart message:
$content_type = explode("/", $message->header->content_type[0]);
if ($content_type[0] == "multipart") {