mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
PHP getElementsByTagName() must be lowercase #1015
This commit is contained in:
parent
8ea2ff4ae8
commit
014d22add9
1 changed files with 2 additions and 1 deletions
|
|
@ -111,6 +111,7 @@ abstract class HtmlUtils
|
||||||
}
|
}
|
||||||
|
|
||||||
$xpath = new \DomXpath($oDoc);
|
$xpath = new \DomXpath($oDoc);
|
||||||
|
|
||||||
foreach ($xpath->query('//*[@data-x-src-broken]') as $oElement) {
|
foreach ($xpath->query('//*[@data-x-src-broken]') as $oElement) {
|
||||||
if (isset($oElement->parentNode)) {
|
if (isset($oElement->parentNode)) {
|
||||||
@$oElement->parentNode->removeChild($oElement);
|
@$oElement->parentNode->removeChild($oElement);
|
||||||
|
|
@ -175,7 +176,7 @@ abstract class HtmlUtils
|
||||||
}
|
}
|
||||||
|
|
||||||
$sIdRight = \md5(\microtime());
|
$sIdRight = \md5(\microtime());
|
||||||
$aNodes = $oBody->getElementsByTagName('IMG');
|
$aNodes = $oBody->getElementsByTagName('img');
|
||||||
foreach ($aNodes as /* @var $oElement \DOMElement */ $oElement) {
|
foreach ($aNodes as /* @var $oElement \DOMElement */ $oElement) {
|
||||||
$sSrc = $oElement->getAttribute('src');
|
$sSrc = $oElement->getAttribute('src');
|
||||||
if ('data:image/' === \strtolower(\substr($sSrc, 0, 11))) {
|
if ('data:image/' === \strtolower(\substr($sSrc, 0, 11))) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue