Fix bug where sent message was saved in Sent folder even if disabled by user (#1490208)

pull/255/head
Aleksander Machniak 10 years ago
parent 7b924535fd
commit 10f133bae8

@ -15,6 +15,7 @@ CHANGELOG Roundcube Webmail
- Fix some rcube_utils::anytodatetime() corner cases with timezone mismatches (#1490163) - Fix some rcube_utils::anytodatetime() corner cases with timezone mismatches (#1490163)
- Improve move-to and contact-export button in classic skin (#1490166) - Improve move-to and contact-export button in classic skin (#1490166)
- Fix wrong icon for download button in classic skin - Fix wrong icon for download button in classic skin
- Fix bug where sent message was saved in Sent folder even if disabled by user (#1490208)
RELEASE 1.1-beta RELEASE 1.1-beta
---------------- ----------------

@ -564,8 +564,10 @@ if ($savedraft) {
$store_target = $drafts_mbox; $store_target = $drafts_mbox;
} }
else if (!$RCMAIL->config->get('no_save_sent_messages')) { else if (!$RCMAIL->config->get('no_save_sent_messages')) {
if (isset($_POST['_store_target'])) {
$store_target = rcube_utils::get_input_value('_store_target', rcube_utils::INPUT_POST); $store_target = rcube_utils::get_input_value('_store_target', rcube_utils::INPUT_POST);
if (!strlen($store_target)) { }
else {
$store_target = $RCMAIL->config->get('sent_mbox'); $store_target = $RCMAIL->config->get('sent_mbox');
} }
} }

Loading…
Cancel
Save