[BUGFIX] Catch error in GeneralUtility::validEmail and GeneralUtility:isValidUrl 26/53626/2
authorNicole Cordes <typo3@cordes.co>
Mon, 5 Jun 2017 12:32:31 +0000 (14:32 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Sun, 30 Jul 2017 17:33:13 +0000 (19:33 +0200)
commitab2cd1fa43acb82286e480bb2c477017631e1519
tree257e7a9836673beca5e691d6a829e073a3409620
parent442b1e1baddcdcf2e773c65c6db69b4d819c12ef
[BUGFIX] Catch error in GeneralUtility::validEmail and GeneralUtility:isValidUrl

If a wrong email address or URL is parsed and the domain cannot be converted,
an exception is thrown by \Mso\IdnaConvert\IdnaConvert::encode(). This
exception needs to be caught.

Resolves: #81471
Releases: master, 8.7, 7.6
Change-Id: I76f9b8898655d9220e5176a60f388067a6c493b3
Reviewed-on: https://review.typo3.org/53626
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php