From 4360276d9bf0e3a78272e3fbd5800078f24283d1 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 2 Dec 2011 14:56:17 +0000 Subject: - Add $_SESSION['mailto'] variable cleanup --- program/steps/mail/compose.inc | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3