summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-12-02 14:56:17 +0000
committeralecpl <alec@alec.pl>2011-12-02 14:56:17 +0000
commit4360276d9bf0e3a78272e3fbd5800078f24283d1 (patch)
tree4b6285499eae8fa900635b57273492182f6fa2e9 /program/steps
parent2a7bf36c733adf0702ad9a432cb98be1e86da1c1 (diff)
- Add $_SESSION['mailto'] variable cleanup
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/compose.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index 4d54db4b6..7eaad2573 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -350,6 +350,10 @@ foreach ($parts as $header) {
) {
$fvalue = urldecode($_SESSION['mailto'][$mailto_id]);
$decode_header = false;
+
+ // make session to not grow up too much
+ unset($_SESSION['mailto'][$mailto_id]);
+ $COMPOSE['param']['to'] = $fvalue;
}
else if (!empty($_POST['_'.$header])) {
$fvalue = get_input_value('_'.$header, RCUBE_INPUT_POST, TRUE);