Sanitize the date for mails
This commit is contained in:
parent
bb0cf09057
commit
2ae4371606
|
@ -46,6 +46,8 @@ class Mail
|
|||
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
|
||||
}
|
||||
|
||||
$msg['created'] = (isset($msg['created']) ? DateTimeFormat::utc($msg['created']) : DateTimeFormat::utcNow());
|
||||
|
||||
DBA::lock('mail');
|
||||
|
||||
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {
|
||||
|
|
Loading…
Reference in a new issue