summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-02 14:56:17 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-12-02 14:56:17 +0000
commit6a6a14d73762034db17540f1adef27748382998c (patch)
treec70d5762a48b77e2bf6956b828d26649d2176902 /roundcubemail/program
parent18db62ce8f09f678b078babe81c5f77afe3ff819 (diff)
- Add $_SESSION['mailto'] variable cleanup
git-svn-id: https://svn.roundcube.net/trunk@5531 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index 4d54db4b6..7eaad2573 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/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);