From: kink Date: Thu, 20 Feb 2003 10:29:37 +0000 (+0000) Subject: Do not use mixed get/post forms as this is broken in some browsers X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8fe969f60034244d8f647bfa0d7b134bdc1002c2;p=squirrelmail.git Do not use mixed get/post forms as this is broken in some browsers (they only submit the post forms and skip the get forms). git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4532 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index c8211ee0..c862dbca 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -669,13 +669,18 @@ function mail_message_listing_beginning ($imapConnection, if (!isset($msg)) { $msg = ''; } - $moveURL = "move_messages.php?msg=$msg&mailbox=$urlMailbox" - . "&startMessage=$start_msg"; + $moveFields = '' . + '' . + ''; + +// $moveURL = "move_messages.php?msg=$msg&mailbox=$urlMailbox" +// . "&startMessage=$start_msg"; /* * This is the beginning of the message list table. * It wraps around all messages */ - echo "
\n" + echo '' ."\n" + . $moveFields . html_tag( 'table' , html_tag( 'tr', html_tag( 'td' , diff --git a/src/move_messages.php b/src/move_messages.php index 94353865..c7c159f2 100644 --- a/src/move_messages.php +++ b/src/move_messages.php @@ -125,21 +125,14 @@ $key = $_COOKIE['key']; $onetimepad = $_SESSION['onetimepad']; $base_uri = $_SESSION['base_uri']; $delimiter = $_SESSION['delimiter']; -if (isset($_GET['mailbox'])) { - $mailbox = $_GET['mailbox']; -} -if (isset($_GET['startMessage'])) { - $startMessage = $_GET['startMessage']; -} + +sqGetGlobalVar('mailbox', $mailbox); +sqGetGlobalVar('startMessage', $startMessage); +sqGetGlobalVar('msg', $msg); + if (isset($_POST['moveButton'])) { $moveButton = $_POST['moveButton']; } -if (isset($_POST['msg'])) { - $msg = $_POST['msg']; -} -elseif (isset($_GET['msg'])) { - $msg = $_GET['msg']; -} if (isset($_SESSION['msgs'])) { $msgs = $_SESSION['msgs'];