summaryrefslogtreecommitdiff
path: root/program/steps/mail/copy.inc
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2013-04-08 19:23:54 +0200
committerThomas Bruederli <thomas@roundcube.net>2013-04-08 19:23:54 +0200
commitce31c026c2d399b0b6f2665c8252e5245ad8f48d (patch)
tree2cbd3068104aea36a51f738d31b5584b66a8be53 /program/steps/mail/copy.inc
parentee696929ad7e79e593b1b1c98bb8e0ffcd0158e8 (diff)
parent4fdaa02ac724e597479a4a48388a8a10101000fd (diff)
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'program/steps/mail/copy.inc')
-rw-r--r--program/steps/mail/copy.inc8
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