Wrap HTML parts with <html><body> and add Doctype declaration (#1487098)

release-0.6
thomascube 14 years ago
parent 965ed0ca7f
commit 56849c658b

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Wrap HTML parts with <html><body> and add Doctype declaration (#1487098)
- Make rcube_autoload silently skip unknown classes (#1487109) - Make rcube_autoload silently skip unknown classes (#1487109)
- Fix charset detection in vcards with encoded values (#1485542) - Fix charset detection in vcards with encoded values (#1485542)
- Better CSS cursors for splitters (#1486874) - Better CSS cursors for splitters (#1486874)

@ -400,6 +400,10 @@ if (!$savedraft) {
$bstyle = 'padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%'; $bstyle = 'padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%';
$message_body = preg_replace('/<blockquote>/', $message_body = preg_replace('/<blockquote>/',
'<blockquote type="cite" style="'.$bstyle.'">', $message_body); '<blockquote type="cite" style="'.$bstyle.'">', $message_body);
// append doctype and html/body wrappers
$message_body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">' .
"\r\n<html><body>\r\n" . $message_body;
} }
// generic footer for all messages // generic footer for all messages
@ -415,6 +419,8 @@ if (!$savedraft) {
} }
if ($footer) if ($footer)
$message_body .= "\r\n" . $footer; $message_body .= "\r\n" . $footer;
if ($isHtml)
$message_body .= "\r\n</body></html>\r\n";
} }
// set line length for body wrapping // set line length for body wrapping

Loading…
Cancel
Save