From 9dbd595cfa841f53e894896b0e1df7307966cfdd Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Mon, 3 Jun 2024 16:15:26 +0200 Subject: [PATCH] A little text formatting --- program/lib/Roundcube/rcube_message.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/lib/Roundcube/rcube_message.php b/program/lib/Roundcube/rcube_message.php index 67f7d7e0fef..98a8f829a36 100644 --- a/program/lib/Roundcube/rcube_message.php +++ b/program/lib/Roundcube/rcube_message.php @@ -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)) {