Skip to content

Commit

Permalink
Fix regression, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Apr 1, 2024
1 parent 47172b4 commit 4959abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions plugins/zipdownload/zipdownload.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ public function download_attachments()
$zip->open($tmpfname, ZipArchive::OVERWRITE);

foreach ($message->attachments as $part) {
$pid = $part->mime_id;
$part = $message->mime_parts[$pid];
$disp_name = $this->_create_displayname($part);

$tmpfn = rcube_utils::temp_filename('zipattach');
Expand Down
4 changes: 2 additions & 2 deletions program/lib/Roundcube/rcube_message.php
Original file line number Diff line number Diff line change
Expand Up @@ -1049,8 +1049,8 @@ private function get_mime_numbers(&$part)
$this->mime_parts[$part->mime_id] = &$part;
}

foreach ($part->parts as $subpart) {
$this->get_mime_numbers($subpart);
for ($i = 0; $i < count($part->parts); $i++) {
$this->get_mime_numbers($part->parts[$i]);
}
}

Expand Down

0 comments on commit 4959abe

Please sign in to comment.