diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-03-21 09:56:49 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-03-21 09:56:49 +0000 |
| commit | 8870fa9e826fdae006b83fa7a47a9e78333ba56a (patch) | |
| tree | 86cfcaa931876736193d88729b7f2cfa171e3aeb /roundcubemail/program/steps | |
| parent | 329dee31a9f2aa99c0654c901038f2b2410385ad (diff) | |
Minor bugfixes posted to the dev-mailing list
git-svn-id: https://svn.roundcube.net/trunk@515 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/compose.inc | 10 | ||||
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc index a794e9814..24057a224 100644 --- a/roundcubemail/program/steps/mail/compose.inc +++ b/roundcubemail/program/steps/mail/compose.inc @@ -201,7 +201,7 @@ function rcmail_compose_headers($attrib) $fvalue = ''; foreach ($to_addresses as $addr_part) { - if (!in_array($addr_part['mailto'], $sa_recipients) && (!$MESSAGE['FROM'] || !in_array($addr_part['mailto'], $MESSAGE['FROM']))) + if (!empty($addr_part['mailto']) && !in_array($addr_part['mailto'], $sa_recipients) && (!$MESSAGE['FROM'] || !in_array($addr_part['mailto'], $MESSAGE['FROM']))) { $fvalue .= (strlen($fvalue) ? ', ':'').$addr_part['string']; $sa_recipients[] = $addr_part['mailto']; @@ -384,8 +384,8 @@ function rcmail_compose_body($attrib) $body = rcmail_first_text_part($MESSAGE); $isHtml = false; } - if (strlen($body)) - $body = rcmail_create_reply_body($body, $isHtml); + + $body = rcmail_create_reply_body($body, $isHtml); } // forward message body inline else if ($compose_mode == RCUBE_COMPOSE_FORWARD) @@ -417,8 +417,8 @@ function rcmail_compose_body($attrib) $body = rcmail_first_text_part($MESSAGE); $isHtml = false; } - if (strlen($body)) - $body = rcmail_create_draft_body($body, $isHtml); + + $body = rcmail_create_draft_body($body, $isHtml); } $OUTPUT->include_script('tiny_mce/tiny_mce.js'); diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index e5e4db837..1b98f1d52 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -1252,7 +1252,7 @@ function rcmail_sanitize_html($body, $container_id) // parse link attributes and set correct target function rcmail_alter_html_link($in) { - $in = preg_replace('/=([^("|\s)]+)(\s|$)/', '="\1"', $in); + $in = preg_replace('/=([^("|\'|\s)]+)(\s|$)/', '="\1"', $in); $attrib = parse_attrib_string($in); if (stristr((string)$attrib['href'], 'mailto:')) |
