mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 17:07:03 +03: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'
|
'/<\?xml [^>]*\?>/i'
|
||||||
), '', $sText);
|
), '', $sText);
|
||||||
|
|
||||||
$sHtmlAttrs = $sBodyAttrs = '';
|
$sHtmlAttrs = '';
|
||||||
$sText = static::ClearBodyAndHtmlTag($sText, $sHtmlAttrs, $sBodyAttrs);
|
|
||||||
|
|
||||||
$aMatch = array();
|
$aMatch = array();
|
||||||
if (\preg_match('/<html([^>]+)>/im', $sText, $aMatch) && !empty($aMatch[1])) {
|
if (\preg_match('/<html([^>]+)>/im', $sText, $aMatch) && !empty($aMatch[1])) {
|
||||||
$sHtmlAttrs = $aMatch[1];
|
$sHtmlAttrs = $aMatch[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sBodyAttrs = '';
|
||||||
$aMatch = array();
|
$aMatch = array();
|
||||||
if (\preg_match('/<body([^>]+)>/im', $sText, $aMatch) && !empty($aMatch[1])) {
|
if (\preg_match('/<body([^>]+)>/im', $sText, $aMatch) && !empty($aMatch[1])) {
|
||||||
$sBodyAttrs = $aMatch[1];
|
$sBodyAttrs = $aMatch[1];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue