From 0dfcc52728c3b1736ad1d2e23e105a40715f5822 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 22 Nov 2023 12:52:56 +0100 Subject: [PATCH] No need to check for libxml_use_internal_errors --- .../v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php b/snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php index 794f4c760..e073363b3 100644 --- a/snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php +++ b/snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php @@ -22,10 +22,7 @@ abstract class HtmlUtils */ public static function BuildHtml(string $sHtml, array &$aFoundCids, array &$aFoundDataURL, array &$aFoundContentLocationUrls) : string { - $bState = true; - if (\MailSo\Base\Utils::FunctionCallable('libxml_use_internal_errors')) { - $bState = \libxml_use_internal_errors(true); - } + $bState = \libxml_use_internal_errors(true); $sHtml = \str_replace('', '', $sHtml); $sHtml = \str_replace('', '', $sHtml); @@ -89,9 +86,7 @@ abstract class HtmlUtils \libxml_clear_errors(); } - if (\MailSo\Base\Utils::FunctionCallable('libxml_use_internal_errors')) { - \libxml_use_internal_errors($bState); - } + \libxml_use_internal_errors($bState); $sHtml = ''; $oBody = $oDoc->getElementsByTagName('body')->item(0);