Bug #81471
closedCatch InvalidArgumentException thrown in \TYPO3\CMS\Core\Utility\GeneralUtility::idnaEncode
100%
Description
Given:
A string with an invalid email address `“mailto:2388511372@qq.com”`.
Expected:
TYPO3\CMS\Core\Utility\GeneralUtility::validEmail should return false.
Actual:
An exception `Conversion from UTF-8 to UCS-4 failed: malformed input at byte 8` is thrown.
The whole problem occurred in \TYPO3\CMS\Core\LinkHandling\LegacyLinkNotationConverter::resolve() during an upgrade from TYPO3 7 LTS to TYPO3 8 LTS. The link which is parsed is `<link “mailto:2388511372@qq.com”>2388511372@qq.com</link>`. Please don't ask how this happens, I don't know. But I wouldn't expect the validEmail() function to throw an error.
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53121
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53121
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53121
Updated by Gerrit Code Review over 7 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53121
Updated by Wolfgang Klinger over 7 years ago
- Related to Bug #80969: List module: Content elments with additional column pi_flexform results in exception "Prohibited input U+0000000A" added
Updated by Gerrit Code Review over 7 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53121
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53625
Updated by Gerrit Code Review over 7 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53626
Updated by Nicole Cordes over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset dfa80ff7e4c48161f990a5e0653ac3fd83171375.