diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-20 11:40:05 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-06-20 11:40:05 +0000 |
| commit | 960fb3ea401e7b96b3a09eca01a6482322186e04 (patch) | |
| tree | ed46732f537f2b6093bb2cac85b67da0cd3ebd81 /roundcubemail/program/steps/addressbook | |
| parent | f3285c42c642dcb0090f836cd1eff9b3543501f9 (diff) | |
Urlencode mail recipients for storing in session + little code cleanup
git-svn-id: https://svn.roundcube.net/trunk@1564 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/mailto.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/mailto.inc b/roundcubemail/program/steps/addressbook/mailto.inc index 101b7c043..90a779644 100644 --- a/roundcubemail/program/steps/addressbook/mailto.inc +++ b/roundcubemail/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'); |
