mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-03-03 03:07:02 +00:00
Catch Throwable for #1914
This commit is contained in:
@@ -65,9 +65,9 @@ abstract class DateTimeHelper
|
||||
}
|
||||
|
||||
return $timestamp;
|
||||
} catch (\Error $error) {
|
||||
} catch (\Throwable $error) {
|
||||
// Catch integer overflow or other fatal errors
|
||||
\SnappyMail\Log::notice('', "Failed to parse RFC 2822 date '{$sDateTime}'");
|
||||
\SnappyMail\Log::notice('', "Failed to parse RFC 2822 date '{$sDateTime}'. {$error->getMessage()}");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user