Feature #17212
closedEnhancement of class.t3lib_htmlmail.php
0%
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)
Updated by Martin Kutschker over 17 years ago
And this works? Shouldn't there be some code that replaces the "real" URL in the attribute with the cid: "mail" URL?
BTW, it'd be great if this would work for CSS code within <style> tags as well.
Updated by Ingo H¶ller over 17 years ago
Well
I had to fix ist because our Newsletters mainly require backgrounds. So I had to fix it this way.
It was hard enough to find the exact place ;)
When you want to have "style" parsed as well, just add it to $attribRegex like I mentioned for div in the last line of my inital Post
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
No feedback for over 90 days.