Skip to content
Snippets Groups Projects
Commit 584f83db authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Sanitize idn_to_ascii with empty string

idn_to_ascii() must not be called with empty
string in PHP 8.4.

Resolves: #104587
Related: #104513
Releases: main, 12.4, 11.5
Change-Id: I649d157cca3dadbe237e20eb440b071a1885db71
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85581


Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarJasmina Ließmann <minapokhalo+typo3@gmail.com>
Tested-by: default avatarJasmina Ließmann <minapokhalo+typo3@gmail.com>
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/85583
parent e47954e4
Branches
Tags
No related merge requests found
...@@ -245,7 +245,7 @@ class SiteMatcher implements SingletonInterface ...@@ -245,7 +245,7 @@ class SiteMatcher implements SingletonInterface
$requestContext = new RequestContext( $requestContext = new RequestContext(
'', '',
$request->getMethod(), $request->getMethod(),
(string)idn_to_ascii($uri->getHost()), $uri->getHost() ? (string)idn_to_ascii($uri->getHost()) : '',
$uri->getScheme(), $uri->getScheme(),
// Ports are only necessary for URL generation in Symfony which is not used by TYPO3 // Ports are only necessary for URL generation in Symfony which is not used by TYPO3
80, 80,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment