summaryrefslogtreecommitdiff
path: root/program/steps/mail/folders.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-07-16 15:01:05 +0000
committerthomascube <thomas@roundcube.net>2009-07-16 15:01:05 +0000
commit881217a5c95dbfe4e62154a2c0edd135b504220e (patch)
treebd344407d4c75a3e0004599cbd760fbb35b7fcde /program/steps/mail/folders.inc
parent7477973d931ffb816b2cbbad9c5bc06e3ef2ecd8 (diff)
Force ajax calls to protect from CSRF
Diffstat (limited to 'program/steps/mail/folders.inc')
-rw-r--r--program/steps/mail/folders.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/steps/mail/folders.inc b/program/steps/mail/folders.inc
index 7fd1f62cc..dc086b155 100644
--- a/program/steps/mail/folders.inc
+++ b/program/steps/mail/folders.inc
@@ -5,7 +5,7 @@
| program/steps/mail/folders.inc |
| |
| This file is part of the RoundCube Webmail client |
- | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland |
+ | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland |
| Licensed under the GNU GPL |
| |
| PURPOSE: |
@@ -18,6 +18,10 @@
$Id$
*/
+// only process ajax requests
+if (!$OUTPUT->ajax_call)
+ return;
+
$mbox_name = $IMAP->get_mailbox_name();
// send EXPUNGE command