From c2e41a6dd5871509f00156f9117b28cfab7de6cf Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Mon, 30 Mar 2015 11:03:53 -0400 Subject: [PATCH] Fix handling of %-encoded entities in mailto: URLs (#1490346) --- CHANGELOG | 1 + program/steps/mail/compose.inc | 2 ++ 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index b4646cc..67833f5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,7 @@ - Fix handling of some improper constructs in format=flowed text as per the RFC3676[4.5] (#1490284) - Fix missing or not up-to-date CATEGORIES entry in vCard export (#1490277) - Fix duplicate entry on timezones list in rcube_config::timezone_name_from_abbr() (#1490293) +- Fix handling of %-encoded entities in mailto: URLs (#1490346) RELEASE 1.0.5 ------------- diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 6a5ce56..d721482 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -430,6 +430,8 @@ // #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'); -- Gitblit v1.9.1