summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-02-10 08:29:45 +0000
committeralecpl <alec@alec.pl>2010-02-10 08:29:45 +0000
commit3e8898ef60d75833680ad368cb03ecc485431561 (patch)
treea639961712e74ee329ee5db1a31c7ff41fae2273
parent91790e41f3fa307658077043bc2fa5f71e270cf4 (diff)
- Fix external mailto links support for use as protocol handler (#1486037)
-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 02cce9fd8..2480ff846 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
+- Fix external mailto links support for use as protocol handler (#1486037)
- Fix attachment excessive memory use, support messages of any size (#1484660)
- Fix setting task name according to auth state
- Password: fix vpopmaild driver (#1486478)
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc
index fd3e862c2..c6a6a5b18 100644
--- a/program/steps/mail/compose.inc
+++ b/program/steps/mail/compose.inc
@@ -44,6 +44,8 @@ if (!is_array($_SESSION['compose']) || $_SESSION['compose']['id'] != get_input_v
// process values like "mailto:foo@bar.com?subject=new+message&cc=another"
if ($_SESSION['compose']['param']['to']) {
+ // #1486037: remove "mailto:" prefix
+ $_SESSION['compose']['param']['to'] = preg_replace('/^mailto:/i', '', $_SESSION['compose']['param']['to']);
$mailto = explode('?', $_SESSION['compose']['param']['to']);
if (count($mailto) > 1) {
$_SESSION['compose']['param']['to'] = $mailto[0];