Project

General

Profile

Actions

Bug #42106

closed

swiftmaileradapter should ignore empty headers

Added by Stefan Neufeind about 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Backend API
Target version:
-
Start date:
2012-10-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There are cases when for example Direct Mail (by error) sends an empty header, in this case "Reply-To:". That leads to an error like described in #27633 later with swiftmailer (Address in mailbox given [@localhost] does not comply with RFC 2822, 3.6.2).

In t3lib/mail/class.t3lib_mail_swiftmaileradapter.php inside setHeader() the headers are transfered over. Executing the line

$addressList = $this->parseAddresses($headerValue);

on the empty value leads to transfer the address to "@localhost" here.

Suggestion: trim $headerValue and check it is not empty before transfering it.

Actions

Also available in: Atom PDF