[TASK] Additional check for valid domain in validEmail() 64/28264/5
authorBenjamin Mack <benni@typo3.org>
Tue, 11 Mar 2014 16:13:21 +0000 (17:13 +0100)
committerBenjamin Mack <benni@typo3.org>
Tue, 30 Dec 2014 15:18:14 +0000 (16:18 +0100)
commit5033a33d7b7ed13f6672db6846ad097b8120315b
treef0110aa7e14dbccff3b0c9f111064c71dcbfa202
parent4eac7ded8c45674bf442566b1daa200a12602c74
[TASK] Additional check for valid domain in validEmail()

If using a correct email address (= correct syntax),
but the domain name has no valid MX entry,
then a given email is validated as valid,
but the destination is still wrong. In some cases
the email should be completely validated.
By adding an additional PHP call to check if
the MX entry of the domain part is valid, the
validEmail() can be put in a stricter mode.

Releases: master
Resolves: #56771
Change-Id: I1396320835a9e2b51533d8b43115a7c4ef3ec338
Reviewed-on: http://review.typo3.org/28264
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php