Actions
Bug #80139
closedTilde in base URL causes exception
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.
Actions