Project

General

Profile

Actions

Bug #93956

closed

TYPO3 v10.15 not handling old Links

Added by Peter Schuhmann about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2021-04-20
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

Description

Hello,

I updated a typo3 v9.5 installation to typo3 v10.15 yesterday and was experiencing a odd behavior regarding the typoscript menu links. All links got prefixed with mailto:<uid>. I thought nowbody would believe me since i haven't had a similar issue working with typo3 since 15 years. please see my attached screenshot.

I did a bit of debugging and noticed that the type of the link gets detected as type "email" for values like "23", "1306" which is clearly a pageUid and should be treated this way. The reason for this to happen was that in the File typo3_src-10.4.15/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php (line 74) the validEmail returns true instead of false for value "23". I also did a little check with the following code:

var_dump(\TYPO3\CMS\Core\Utility\GeneralUtility::validEmail((string)parse_url("23", PHP_URL_PATH))); // => true
var_dump(\TYPO3\CMS\Core\Utility\GeneralUtility::validEmail("23")); // => true

I could find out the exact reason for this to happen but switching back to TYPO3 10.14 solved the issue for me. My tests with validEmail returned false after the downgrade.

best regards
Peter


Files

Actions

Also available in: Atom PDF