From 4b72a1f49843aa64cdf90301ae71035c3e6cf30a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 31 Jul 2015 12:48:17 -0400 Subject: [PATCH] Fix error when using back button after sending an email (#1490009) --- index.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 8598ff3..c029b5a 100644 --- a/index.php +++ b/index.php @@ -1,8 +1,8 @@ <?php -/* +/** +-------------------------------------------------------------------------+ | Roundcube Webmail IMAP Client | - | Version 1.1.0 | + | Version 1.2-git | | | | Copyright (C) 2005-2015, The Roundcube Dev Team | | | @@ -62,12 +62,12 @@ rcmail::raise_error(array( 'code' => 603, 'type' => 'db', - 'message' => $err_str), FALSE, TRUE); + 'message' => $err_str), false, true); } // error steps if ($RCMAIL->action == 'error' && !empty($_GET['_code'])) { - rcmail::raise_error(array('code' => hexdec($_GET['_code'])), FALSE, TRUE); + rcmail::raise_error(array('code' => hexdec($_GET['_code'])), false, true); } // check if https is required (for login) and redirect if necessary @@ -131,7 +131,7 @@ // prevent redirect to compose with specified ID (#1488226) if ($query['_action'] == 'compose' && !empty($query['_id'])) { - $query = array(); + $query = array('_action' => 'compose'); } } -- Gitblit v1.9.1