mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 23:55:55 +08:00
Bugfix: undefined ClearBodyAndHtmlTag
This commit is contained in:
parent
0dffa549be
commit
aa276c04c0
|
@ -72,14 +72,13 @@ abstract class HtmlUtils
|
|||
'/<\?xml [^>]*\?>/i'
|
||||
), '', $sText);
|
||||
|
||||
$sHtmlAttrs = $sBodyAttrs = '';
|
||||
$sText = static::ClearBodyAndHtmlTag($sText, $sHtmlAttrs, $sBodyAttrs);
|
||||
|
||||
$sHtmlAttrs = '';
|
||||
$aMatch = array();
|
||||
if (\preg_match('/<html([^>]+)>/im', $sText, $aMatch) && !empty($aMatch[1])) {
|
||||
$sHtmlAttrs = $aMatch[1];
|
||||
}
|
||||
|
||||
$sBodyAttrs = '';
|
||||
$aMatch = array();
|
||||
if (\preg_match('/<body([^>]+)>/im', $sText, $aMatch) && !empty($aMatch[1])) {
|
||||
$sBodyAttrs = $aMatch[1];
|
||||
|
|
Loading…
Reference in a new issue