Skip to content

Commit

Permalink
Maybe solution for #867
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Jan 22, 2023
1 parent da4b968 commit 65bf9be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,6 @@ public static function NewInstance(array $aBodyStructure, string $sPartID = '')
++$iExtraItemPos;

$sDisposition = '';
$sFileName = '';

if ($iExtraItemPos < \count($aBodyStructure)) {
$aDispList = $aBodyStructure[$iExtraItemPos];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function jsonSerialize()
'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(),
Expand Down

0 comments on commit 65bf9be

Please sign in to comment.