#17212Enhancement of class.t3lib_htmlmail.php
Description
when using style=“background:url();” the images in url won’t be parsed.
Solution :
function extractMediaLinks() {
….
// new
if (!(strpos(strtolower($attributes[“style”]),‘url(‘)===false)) {
$urlstart=strpos(strtolower($attributes[“style”]),‘url(‘)+4;
$urlend=strpos(strtolower($attributes[“style”]),’)’,$urlstart);
$imageData[“ref”]=substr($attributes[“style”],$urlstart,$urlend-$urlstart);
}
// end new
if ($imageData[“ref”]) {
…
Additionally the Tag “div” should be added to $attribRegex in the third line of function extractMediaLinks()
(issue imported from #M5439)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.