Ticket system attachements exception handling

This commit is contained in:
OpenXE
2023-02-01 16:55:54 +01:00
parent 0eb3ba50f2
commit 9daaf58281
2 changed files with 9 additions and 2 deletions
@@ -161,7 +161,7 @@ class MailAttachmentData implements MailAttachmentInterface
$content = $part->getContent();
if ($content === null) { // This should not be
throw new InvalidArgumentException(
sprintf('content is null "%s"', print_r($part,true))
sprintf('content is null "%s"', substr(print_r($part,true),1000))
);
}