Merge pull request #7260 from annando/sanitize-input
Sanitize the date for mails
This commit is contained in:
commit
6c6e3058f2
|
@ -46,6 +46,8 @@ class Mail
|
||||||
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
|
$msg['guid'] = Item::guidFromUri($msg['uri'], $host);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$msg['created'] = (!empty($msg['created']) ? DateTimeFormat::utc($msg['created']) : DateTimeFormat::utcNow());
|
||||||
|
|
||||||
DBA::lock('mail');
|
DBA::lock('mail');
|
||||||
|
|
||||||
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {
|
if (DBA::exists('mail', ['uri' => $msg['uri'], 'uid' => $msg['uid']])) {
|
||||||
|
|
Loading…
Reference in a new issue