summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-03-30 10:56:23 -0400
committerAleksander Machniak <alec@alec.pl>2015-03-30 10:56:23 -0400
commit1a7e668977ebdcc799c656dfbc11dd31a991282b (patch)
treef08c012b78b1f67711a3686c4d5b65ad5a8f9668
parent4d9627c36a49918dbb5fe084173a01c6550ea790 (diff)
Fix handling of %-encoded entities in mailto: URLs (#1490346)
-rw-r--r--CHANGELOG1
-rw-r--r--program/steps/mail/compose.inc2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 9877a086a..be9ac2195 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -5,6 +5,7 @@ CHANGELOG Roundcube Webmail
- Add initdb.sh to create database from initial.sql script with prefix support (#1490188)
- Plugin API: Added message_part_body hook
- Plugin API: Add special onload() method to execute plugin actions before startup (session and GUI initialization)
+- Fix handling of %-encoded entities in mailto: URLs (#1490346)
RELEASE 1.1.1
-------------
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');