Skip to content
Snippets Groups Projects
Unverified Commit 380526dc authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Limit the size of recipient labels

parent a53dd102
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,7 @@ use OCP\IDBConnection;
use function array_combine;
use function array_keys;
use function array_map;
use function mb_substr;
class MessageMapper extends QBMapper {
......@@ -146,7 +147,7 @@ class MessageMapper extends QBMapper {
$qb2->setParameter('message_id', $messageId, IQueryBuilder::PARAM_INT);
$qb2->setParameter('type', $type, IQueryBuilder::PARAM_INT);
$qb2->setParameter('label', $recipient->getLabel(), IQueryBuilder::PARAM_STR);
$qb2->setParameter('label', mb_substr($recipient->getLabel(), 0, 255), IQueryBuilder::PARAM_STR);
$qb2->setParameter('email', $recipient->getEmail(), IQueryBuilder::PARAM_STR);
$qb2->execute();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment