Skip to content

Commit

Permalink
A little text formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pabzm committed Jun 6, 2024
1 parent edaa275 commit 9dbd595
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions program/lib/Roundcube/rcube_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,12 +604,14 @@ public function get_replacement_references(): array
public function is_standalone_attachment(rcube_message_part $part): bool
{
$references = $this->get_replacement_references();

// This code is intentionally verbose to keep it comprehensible.
// Filter out attachments that are reference by their Content-ID in
// another mime-part.
if (!empty($part->content_id) && in_array($part->content_id, $references)) {
return false;
}

// Filter out attachments that are reference by their
// Content-Location in another mime-part.
if (!empty($part->content_location) && in_array($part->content_location, $references)) {
Expand Down

0 comments on commit 9dbd595

Please sign in to comment.