diff options
author | Aleksander Machniak <alec@alec.pl> | 2015-03-30 10:56:23 -0400 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2015-03-30 10:56:23 -0400 |
commit | 1a7e668977ebdcc799c656dfbc11dd31a991282b (patch) | |
tree | f08c012b78b1f67711a3686c4d5b65ad5a8f9668 /program | |
parent | 4d9627c36a49918dbb5fe084173a01c6550ea790 (diff) |
Fix handling of %-encoded entities in mailto: URLs (#1490346)
Diffstat (limited to 'program')
-rw-r--r-- | program/steps/mail/compose.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 4c3ecfbc0..007efc5f3 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -448,6 +448,8 @@ function rcmail_process_compose_params(&$COMPOSE) // #1486037: remove "mailto:" prefix $COMPOSE['param']['to'] = preg_replace('/^mailto:/i', '', $mailto[0]); + // #1490346: decode the recipient address + $COMPOSE['param']['to'] = urldecode($COMPOSE['param']['to']); // Supported case-insensitive tokens in mailto URL $url_tokens = array('to', 'cc', 'bcc', 'reply-to', 'in-reply-to', 'references', 'subject', 'body'); |