Project

General

Profile

Actions

Feature #17212

closed

Enhancement of class.t3lib_htmlmail.php

Added by Ingo H¶ller over 17 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-04-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

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)

Actions #1

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.

Actions #2

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

Actions #3

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)?

Actions #4

Updated by Alexander Opitz about 11 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF