Project

General

Profile

Actions

Bug #80139

closed

Tilde in base URL causes exception

Added by Aimeos no-lastname-given over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Start date:
2017-03-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If the base URL contains a tilde (e.g. in "localhost/~test/"), an exception is thrown:

InvalidArgumentException: NAMEPREP: Prohibited input U+0000007E in typo3_src-8.6.1/vendor/mso/idna-convert/src/Punycode.php:335
Stack trace:
#0 typo3_src-8.6.1/vendor/mso/idna-convert/src/Punycode.php(187): Mso\\IdnaConvert\\Punycode->namePrep(Array)
#1 typo3_src-8.6.1/vendor/mso/idna-convert/src/IdnaConvert.php(327): Mso\\IdnaConvert\\Punycode->encode(Array)
#2 typo3_src-8.6.1/typo3/sysext/core/Classes/Utility/GeneralUtility.php (1088): Mso\\IdnaConvert\\IdnaConvert->encode(Array)
#3 typo3_src-8.6.1/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(5917): TYPO3\\CMS\\Core\\Utility\\GeneralUtility::idnaEncode('localhost/~test...')
#4 typo3_src-8.6.1/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php(6232): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->typoLink('|', Array)
#5 typo3_src-8.6.1/typo3/sysext/extbase/Classes/Mvc/Web/Routing/UriBuilder.php(705): TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer->typoLink_URL(Array)

The punnycode encoding must be used for the domain part only.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #86921: Linkvalidator reports exception on links with tilde (~)Closed2018-11-13

Actions
Actions

Also available in: Atom PDF