From 014d22add9acaa05ad4fb7b31b624efba413a04c Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 14 Mar 2023 13:05:46 +0100 Subject: [PATCH] PHP getElementsByTagName() must be lowercase #1015 --- snappymail/v/0.0.0/app/libraries/MailSo/Base/HtmlUtils.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 c1782d86b..794f4c760 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 @@ -111,6 +111,7 @@ abstract class HtmlUtils } $xpath = new \DomXpath($oDoc); + foreach ($xpath->query('//*[@data-x-src-broken]') as $oElement) { if (isset($oElement->parentNode)) { @$oElement->parentNode->removeChild($oElement); @@ -175,7 +176,7 @@ abstract class HtmlUtils } $sIdRight = \md5(\microtime()); - $aNodes = $oBody->getElementsByTagName('IMG'); + $aNodes = $oBody->getElementsByTagName('img'); foreach ($aNodes as /* @var $oElement \DOMElement */ $oElement) { $sSrc = $oElement->getAttribute('src'); if ('data:image/' === \strtolower(\substr($sSrc, 0, 11))) {