[BUGFIX] MailUtility::parseAddresses() returns @localhost on empty string
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Utility / MailUtility.php
index 44008ec..7799907 100644 (file)
@@ -242,6 +242,9 @@ class MailUtility {
                $addresses = $addressParser->parseAddressList();
                $addressList = array();
                foreach ($addresses as $address) {
+                       if ($address->mailbox === '') {
+                               continue;
+                       }
                        if ($address->personal) {
                                // item with name found ( name <email@example.org> )
                                $addressList[$address->mailbox . '@' . $address->host] = $address->personal;