summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-13 17:38:18 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-25 11:07:40 +0200
commit8b93fc92845d13e17795b9b3a52cdeb81e5340c5 (patch)
tree877266800f63bcd62ea8e79524e184de25864721 /program/steps
parent54b4790fcdfee4f66cb3aa5a1613906c2284016c (diff)
Use POST for refresh/check-recent request
Conflicts: program/steps/mail/check_recent.inc
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/check_recent.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/program/steps/mail/check_recent.inc b/program/steps/mail/check_recent.inc
index d2d27a2ca..5eb190e96 100644
--- a/program/steps/mail/check_recent.inc
+++ b/program/steps/mail/check_recent.inc
@@ -21,7 +21,7 @@
// If there's no folder or messages list, there's nothing to update
// This can happen on 'refresh' request
-if (empty($_REQUEST['_folderlist']) && empty($_REQUEST['_list'])) {
+if (empty($_POST['_folderlist']) && empty($_POST['_list'])) {
return;
}
@@ -73,14 +73,16 @@ foreach ($a_mailboxes as $mbox_name) {
$_SESSION['search'] = $RCMAIL->storage->refresh_search();
}
- if (!empty($_GET['_quota']))
+ if (!empty($_POST['_quota'])) {
$OUTPUT->command('set_quota', $RCMAIL->quota_content());
+ }
$OUTPUT->set_env('exists', $RCMAIL->storage->count($mbox_name, 'EXISTS'));
// "No-list" mode, don't get messages
- if (empty($_GET['_list']))
+ if (empty($_POST['_list'])) {
continue;
+ }
// get overall message count; allow caching because rcube_storage::folder_status()
// did a refresh but only in list mode