Skip to content
Snippets Groups Projects
Commit fad881ed authored by JediKev's avatar JediKev
Browse files

issue: Outlook _MailEndCompose

This addresses an issue where Outlook adds weird (and seemingly random)
_MailEndCompose tags to the email body which turns unwanted content into
links. This adds the _MailEndCompose tag to Format::sanitize() so it
will be removed from the email body.
parent c4669d77
Branches
Tags
No related merge requests found
......@@ -306,8 +306,9 @@ class Format {
':<!DOCTYPE[^>]+>:', # <!DOCTYPE ... >
':<\?[^>]+>:', # <?xml version="1.0" ... >
':<html[^>]+:i', # drop html attributes
':<(a|span) (name|style)="(mso-bookmark\:)?_MailEndCompose">(.+)?<\/(a|span)>:', # Drop _MailEndCompose
),
array('', '', '', '', '<html'),
array('', '', '', '', '<html', '$4'),
$html);
// HtmLawed specific config only
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment