summaryrefslogtreecommitdiff
path: root/program/steps/mail/sendmdn.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/sendmdn.inc
parent7477973d931ffb816b2cbbad9c5bc06e3ef2ecd8 (diff)
Force ajax calls to protect from CSRF
Diffstat (limited to 'program/steps/mail/sendmdn.inc')
-rw-r--r--program/steps/mail/sendmdn.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/steps/mail/sendmdn.inc b/program/steps/mail/sendmdn.inc
index c3294e7fe..f1fb79296 100644
--- a/program/steps/mail/sendmdn.inc
+++ b/program/steps/mail/sendmdn.inc
@@ -19,6 +19,9 @@
*/
+// only process ajax requests
+if (!$OUTPUT->ajax_call)
+ return;
if (!empty($_POST['_uid'])) {
$sent = rcmail_send_mdn(get_input_value('_uid', RCUBE_INPUT_POST), $smtp_error);