Skip to content

Commit

Permalink
Fix internal attachment links
Browse files Browse the repository at this point in the history
closes #204
  • Loading branch information
barbushin committed Nov 10, 2017
1 parent e3333d9 commit 64e91cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpImap/IncomingMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function replaceInternalLinks($baseUri) {
foreach($this->attachments as $attachment) {
if($attachment->contentId == $attachmentId) {
$search[] = $placeholder;
$replace[] = $baseUri . basename($this->attachments[$attachmentId]->filePath);
$replace[] = $baseUri . basename($this->attachments[$attachment->id]->filePath);
}
}
}
Expand Down

0 comments on commit 64e91cc

Please sign in to comment.