diff options
author | Andy Wermke <andy@dev.next-step-software.com> | 2013-04-08 14:33:51 +0200 |
---|---|---|
committer | Andy Wermke <andy@dev.next-step-software.com> | 2013-04-08 14:33:51 +0200 |
commit | bf3084b608b8a1036f0b091140350813d54c3d0d (patch) | |
tree | 117dfd4d6db9f03eec4d227d6b1911c3d4882284 /program/steps/mail/copy.inc | |
parent | fe245e5f5dbea1c18517471103185e04a52c89b3 (diff) | |
parent | 4fdaa02ac724e597479a4a48388a8a10101000fd (diff) |
Merge branch 'master' of https://github.com/roundcube/roundcubemail
Diffstat (limited to 'program/steps/mail/copy.inc')
-rw-r--r-- | program/steps/mail/copy.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/program/steps/mail/copy.inc b/program/steps/mail/copy.inc index a72378b0e..876657485 100644 --- a/program/steps/mail/copy.inc +++ b/program/steps/mail/copy.inc @@ -24,10 +24,10 @@ if (!$OUTPUT->ajax_call) return; // move messages -if (!empty($_POST['_uid']) && !empty($_POST['_target_mbox'])) { - $uids = get_input_value('_uid', RCUBE_INPUT_POST); +if (!empty($_POST['_uid']) && strlen($_POST['_target_mbox'])) { + $uids = get_input_value('_uid', RCUBE_INPUT_POST); $target = get_input_value('_target_mbox', RCUBE_INPUT_POST, true); - $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true); + $mbox = get_input_value('_mbox', RCUBE_INPUT_POST, true); $copied = $RCMAIL->storage->copy_message($uids, $target, $mbox); @@ -47,7 +47,7 @@ if (!empty($_POST['_uid']) && !empty($_POST['_target_mbox'])) { } // unknown action or missing query param else { - exit; + $OUTPUT->show_message('internalerror', 'error'); } // send response |