[BUGFIX] Catch error in GeneralUtility::validEmail and GeneralUtility:isValidUrl 21/53121/6
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:32:34 +0000 (19:32 +0200)
commitdfa80ff7e4c48161f990a5e0653ac3fd83171375
treec4d9176285ac34ca328f97990b639fdb30d9c82f
parent77e728e7eda7b776dfdea34324f64ad3cea39f0d
[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/53121
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
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