Skip to content

Commit

Permalink
fix: Handle emails with empty body
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Dec 1, 2023
1 parent 22ef430 commit 31fdc13
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MessageHandler/CreateTicketsFromMailboxEmailsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ private function storeAttachments(MailboxEmail $mailboxEmail): array
*/
private function replaceAttachmentsUrls(string $content, array $messageDocuments): string
{
if (!$content) {
return '';
}

$contentDom = new \DOMDocument();

// DOMDocument::loadHTML considers the source string to be encoded in
Expand Down

0 comments on commit 31fdc13

Please sign in to comment.