mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-11 01:23:43 +08:00
Bugfix: undefined ClearBodyAndHtmlTag
This commit is contained in:
parent
0dffa549be
commit
aa276c04c0
1 changed files with 2 additions and 3 deletions
|
@ -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