Review 14.3 Merged

96843[BUGFIX] Handle URIs without host in site matching

Garvin Hicking CR +2 V +2 Easy +27 −1 updated 10/18/26, 18:25

Commit message

RequestContextFactory::fromUri() passed an empty host to
idn_to_ascii(), which throws a ValueError since PHP 8. Requests
with a host-less URI, e.g. frontend sub-requests, crashed in
SiteResolver instead of resolving to a NullSite.

The empty host is now guarded the same way fromServerRequest()
already does it.

Review

  • Code review CR +2 Done
    • Garvin Hicking +2
  • Verified V +2 Done
    • Garvin Hicking +2
    • core-ci +1 CI

Issues 2

Files 2

Review log 34

  1. Garvin Hicking commented on patch set 1 10/18/26, 18:07

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 10/18/26, 18:21 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111556

  3. Garvin Hicking voted on patch set 1 CR +2 V +2 10/18/26, 18:25

  4. Garvin Hicking merged patch set 2 10/18/26, 18:25