summaryrefslogtreecommitdiff
path: root/program/steps/mail/folders.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-05-18 11:29:25 +0000
committerthomascube <thomas@roundcube.net>2007-05-18 11:29:25 +0000
commit8d07583f3920f27186ccc16ea1ecb49104f1e32d (patch)
treed78dc7781c357e9323313585c1cb20104a3a61ee /program/steps/mail/folders.inc
parent3c3b3517c1d806c1602d09b216348954f17a8750 (diff)
Use HTTP-POST requests for actions that change application state
Diffstat (limited to 'program/steps/mail/folders.inc')
-rw-r--r--program/steps/mail/folders.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/program/steps/mail/folders.inc b/program/steps/mail/folders.inc
index a97057e2c..1df51cd02 100644
--- a/program/steps/mail/folders.inc
+++ b/program/steps/mail/folders.inc
@@ -21,12 +21,12 @@
$mbox_name = $IMAP->get_mailbox_name();
// send EXPUNGE command
-if ($_action=='expunge')
+if ($_action=='expunge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST)))
{
- $success = $IMAP->expunge(get_input_value('_mbox', RCUBE_INPUT_GET));
+ $success = $IMAP->expunge($mbox);
// reload message list if current mailbox
- if ($success && !empty($_GET['_reload']))
+ if ($success && !empty($_REQUEST['_reload']))
{
$OUTPUT->command('message_list.clear');
$_action = 'list';
@@ -37,11 +37,11 @@ if ($_action=='expunge')
}
// clear mailbox
-else if ($_action=='purge')
+else if ($_action=='purge' && ($mbox = get_input_value('_mbox', RCUBE_INPUT_POST)))
{
- $success = $IMAP->clear_mailbox(get_input_value('_mbox', RCUBE_INPUT_GET));
+ $success = $IMAP->clear_mailbox($mbox);
- if ($success && !empty($_GET['_reload']))
+ if ($success && !empty($_REQUEST['_reload']))
{
$OUTPUT->set_env('messagecount', 0);
$OUTPUT->set_env('pagecount', 0);