Skip to content

Commit c363cd0

Browse files
StCyrChristophWurst
authored andcommitted
Truncate email addresses that are more than 244 characters long
Signed-off-by: Cyrille Bollu <cyr.debian@bollu.be> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent df22103 commit c363cd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Db/MessageMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public function insertBulk(Account $account, Message ...$messages): void {
341341
$qb2->setParameter('message_id', $messageId, IQueryBuilder::PARAM_INT);
342342
$qb2->setParameter('type', $type, IQueryBuilder::PARAM_INT);
343343
$qb2->setParameter('label', mb_strcut($recipient->getLabel(), 0, 255), IQueryBuilder::PARAM_STR);
344-
$qb2->setParameter('email', $recipient->getEmail(), IQueryBuilder::PARAM_STR);
344+
$qb2->setParameter('email', mb_strcut($recipient->getEmail(), 0, 255), IQueryBuilder::PARAM_STR);
345345

346346
$qb2->executeStatement();
347347
}

0 commit comments

Comments
 (0)