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

issue: Image CID Attributes

This addresses an issue where images in email signatures containing a
`data-cid` attribute will either crash the ticket page or not show the image
in the signature.
parent c8731113
No related branches found
No related tags found
No related merge requests found
...@@ -308,8 +308,9 @@ class Format { ...@@ -308,8 +308,9 @@ class Format {
':<html[^>]+:i', # drop html attributes ':<html[^>]+:i', # drop html attributes
':<(a|span) (name|style)="(mso-bookmark\:)?_MailEndCompose">(.+)?<\/(a|span)>:', # Drop _MailEndCompose ':<(a|span) (name|style)="(mso-bookmark\:)?_MailEndCompose">(.+)?<\/(a|span)>:', # Drop _MailEndCompose
':<div dir=(3D)?"ltr">(.*?)<\/div>(.*):is', # drop Gmail "ltr" attributes ':<div dir=(3D)?"ltr">(.*?)<\/div>(.*):is', # drop Gmail "ltr" attributes
':data-cid="[^"]*":', # drop image cid attributes
), ),
array('', '', '', '', '<html', '$4', '$2 $3'), array('', '', '', '', '<html', '$4', '$2 $3', ''),
$html); $html);
// HtmLawed specific config only // 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