Maybe solution for #867

This commit is contained in:
the-djmaze 2023-01-22 13:32:03 +01:00
parent da4b9684b4
commit 65bf9be580
2 changed files with 1 additions and 2 deletions

View file

@ -473,7 +473,6 @@ class BodyStructure
++$iExtraItemPos;
$sDisposition = '';
$sFileName = '';
if ($iExtraItemPos < \count($aBodyStructure)) {
$aDispList = $aBodyStructure[$iExtraItemPos];

View file

@ -100,7 +100,7 @@ class Attachment implements \JsonSerializable
'MimeIndex' => (string) $this->oBodyStructure->PartID(),
'MimeType' => $this->oBodyStructure->ContentType(),
'MimeTypeParams' => $this->oBodyStructure->ContentTypeParameters(),
'FileName' => \MailSo\Base\Utils::SecureFileName($this->oBodyStructure->FileName(true)),
'FileName' => \MailSo\Base\Utils::SecureFileName($this->FileName(true)),
'EstimatedSize' => $this->oBodyStructure->EstimatedSize(),
'Cid' => $this->oBodyStructure->ContentID(),
'ContentLocation' => $this->oBodyStructure->ContentLocation(),