瀏覽代碼

Fix the save message button, using new functionality marc introduced yesterday.

Thijs Kinkhorst 22 年之前
父節點
當前提交
6340eaaa3b
共有 1 個文件被更改,包括 11 次插入9 次删除
  1. 11 9
      plugins/message_details/message_details_top.php

+ 11 - 9
plugins/message_details/message_details_top.php

@@ -27,17 +27,19 @@ displayHtmlHeader( _("Message details"),
              "-->\n".
              "-->\n".
              "</script>\n", FALSE );
              "</script>\n", FALSE );
 
 
-$passed_id = $_GET['passed_id'];
-$mailbox = $_GET['mailbox'];
+sqgetGlobalVar('passed_id', $passed_id, SQ_GET);
+sqgetGlobalVar('mailbox', $mailbox, SQ_GET);
 
 
 echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
 echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\">\n" .
-     '<center><b>'.
-     '<FORM name=rfc822 action="message_details_download.php?savemessage=1&passed_id='."$passed_id".'" METHOD=POST>' .     
-     '<input type="button" value="' . _("Print") . '" onClick="printPopup()">&nbsp&nbsp '.
-     '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()">&nbsp&nbsp'.
-// disable for now because it doesn't work
-//     '<input type="submit" value="' . _("Save Message") . '"> '.
-     '<input type="hidden" name="mailbox" value="'. "$mailbox" . '"> ' .
+     '<center><b>' .
+     '<form action="' . SM_PATH . 'src/download.php" method="GET">' .     
+     '<input type="button" value="' . _("Print") . '" onClick="printPopup()" />&nbsp;&nbsp;'.
+     '<input type="button" value="' . _("Close Window") . '" onClick="window.parent.close()" />&nbsp;&nbsp;'.
+     '<input type="submit" value="' . _("Save Message") . '" /> '.
+     '<input type="hidden" name="mailbox" value="' . urlencode($mailbox) . '" />' .
+     '<input type="hidden" name="passed_id" value="' . urlencode($passed_id) . '" />' .
+     '<input type="hidden" name="ent_id" value="0" />' .
+     '<input type="hidden" name="absolute_dl" value="true" />' .
      '</form>'.
      '</form>'.
      '</b>'.
      '</b>'.
      '</body>'.
      '</body>'.