Project

General

Profile

Bug #93308 ยป fix-broken-chinese-urls.patch

Stefano Kowalke, 2021-01-18 10:59

View differences:

typo3/cms-core/Classes/Routing/SiteMatcher.php
// Add the site as entrypoint
$uri = $site->getBase();
$route = new Route(
($uri->getPath() ?: '/') . '{tail}',
(rawurldecode($uri->getPath()) ?: '/') . '{tail}',
['site' => $site, 'language' => null, 'tail' => ''],
array_filter(['tail' => '.*', 'port' => (string)$uri->getPort()]),
['utf8' => true],
......
foreach ($site->getAllLanguages() as $siteLanguage) {
$uri = $siteLanguage->getBase();
$route = new Route(
($uri->getPath() ?: '/') . '{tail}',
(rawurldecode($uri->getPath()) ?: '/') . '{tail}',
['site' => $site, 'language' => $siteLanguage, 'tail' => ''],
array_filter(['tail' => '.*', 'port' => (string)$uri->getPort()]),
['utf8' => true],
    (1-1/1)