diff options
author | thomascube <thomas@roundcube.net> | 2008-06-20 11:40:05 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-06-20 11:40:05 +0000 |
commit | fde466c58c004e8f7eff7b59c78f62eef250cde9 (patch) | |
tree | d46360c24b111482b27f0a14a4ab821e3cfd4d7a /program/steps/addressbook | |
parent | 2da368e6633ae4dec5d9b02ec3f4b693ffc9fb76 (diff) |
Urlencode mail recipients for storing in session + little code cleanup
Diffstat (limited to 'program/steps/addressbook')
-rw-r--r-- | program/steps/addressbook/mailto.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/addressbook/mailto.inc b/program/steps/addressbook/mailto.inc index 101b7c043..90a779644 100644 --- a/program/steps/addressbook/mailto.inc +++ b/program/steps/addressbook/mailto.inc @@ -37,8 +37,8 @@ if (!empty($mailto)) { $mailto_str = join(', ', $mailto); $mailto_id = substr(md5($mailto_str), 0, 16); - $_SESSION['mailto'][$mailto_id] = $mailto_str; - $OUTPUT->command('redirect', rcmail_url('compose', array('_mailto' => $mailto_id), 'mail')); + $_SESSION['mailto'][$mailto_id] = urlencode($mailto_str); + $OUTPUT->redirect(array('task' => 'mail', '_action' => 'compose', '_mailto' => $mailto_id)); } else $OUTPUT->show_message('nocontactsfound', 'warning'); |