No idea why that line fall off
[squirrelmail.git] / functions / mime.php
index bbf3953..eeff949 100644 (file)
@@ -931,6 +931,7 @@ function formatAttachments($message, $ent_id, $mailbox, $id) {
             $DefaultLink =
                 "../src/download.php?startMessage=$startMessage&passed_id=$id&mailbox=$urlMailbox&passed_ent_id=$ent";
             if ($where && $what) {
+              $DefaultLink = '&where='. urlencode($where).'&what='.urlencode($what);
             }
             $Links['download link']['text'] = _("download");
             $Links['download link']['href'] =