summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-09-06 17:16:14 +0000
committerthomascube <thomas@roundcube.net>2008-09-06 17:16:14 +0000
commit9d55d2c8cab2e9c1c53590e81e39d4acb513fb90 (patch)
tree0ef9142e806242af84a1dfc0dcdc82cd4e4454c9
parent48c0d497bba2d6a60c3360bf443f35e54946626d (diff)
Log error when submitting an invalid compose ID
-rw-r--r--program/steps/mail/sendmail.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc
index 7d872abc7..9a79317bc 100644
--- a/program/steps/mail/sendmail.inc
+++ b/program/steps/mail/sendmail.inc
@@ -23,7 +23,8 @@
if (!isset($_SESSION['compose']['id']))
{
- rcmail_overwrite_action('list');
+ raise_error(array('code' => 500, 'file' => __FILE__, 'message' => "Invalid compose ID"), true, false);
+ rcmail_overwrite_action('compose');
return;
}