Skip to content

Commit

Permalink
[BUGFIX] Wrong $host value when transport_smtp_server is not set.
Browse files Browse the repository at this point in the history
Set $host to empty string
if $mailSettings['transport_smtp_server'] does not exist.

Resolves: #84464
Releases: master
Change-Id: I3851bf262e51639e4572dfd8c1967e58b67ca792
Reviewed-on: https://review.typo3.org/56345
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
lsascha authored and lolli42 committed Mar 18, 2018
1 parent 585c44d commit b61a4b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/core/Classes/Mail/TransportFactory.php
Expand Up @@ -58,7 +58,7 @@ public function get(array $mailSettings): \Swift_Transport
$host = $parts[0];
$port = $parts[1] ?? null;
} else {
$host = (string)$mailSettings['transport_smtp_server'] ?? null;
$host = (string)$mailSettings['transport_smtp_server'] ?? '';
$port = null;
}

Expand Down

0 comments on commit b61a4b2

Please sign in to comment.