diff options
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | program/steps/mail/compose.inc | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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]; |