Fixed attachments issue... Seemed that the session wasn't getting the new
[squirrelmail.git] / src / vcard.php
index 9804376be821a02d147c591b8f0972c38d568fd7..da4a7a63216b2eeb82990789539cd330150b672e 100644 (file)
@@ -25,10 +25,9 @@ require_once(SM_PATH . 'include/load_prefs.php');
 $key  = $_COOKIE['key'];
 $username = $_SESSION['username'];
 $onetimepad = $_SESSION['onetimepad'];
-$mailbox = urldecode($_GET['mailbox']);
+$mailbox = $_GET['mailbox'];
 $passed_id = (int) $_GET['passed_id'];
 $ent_id = $_GET['ent_id'];
-$passed_ent_id = $_GET['passed_ent_id'];
 $startMessage = (int) $_GET['startMessage'];
 /* end globals */
 
@@ -210,7 +209,7 @@ echo '</select>' .
         '<tr><td align=center>' .
         '<a href="../src/download.php?absolute_dl=true&amp;passed_id=' .
         $passed_id . '&amp;mailbox=' . urlencode($mailbox) .
-        '&amp;passed_ent_id=' . urlencode($passed_ent_id) . '">' .
+        '&amp;ent_id=' . urlencode($ent_id) . '">' .
         _("Download this as a file") . '</A>' .
         '</TD></TR></TABLE>' .