Project

General

Profile

Actions

Bug #81471

closed

Catch InvalidArgumentException thrown in \TYPO3\CMS\Core\Utility\GeneralUtility::idnaEncode

Added by Nicole Cordes over 7 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2017-06-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Given:

A string with an invalid email address `“mailto:”`.

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:”></link>`. Please don't ask how this happens, I don't know. But I wouldn't expect the validEmail() function to throw an error.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #80969: List module: Content elments with additional column pi_flexform results in exception "Prohibited input U+0000000A"Closed2017-04-23

Actions
Actions

Also available in: Atom PDF