Review 14.3 Merged

94898[BUGFIX] Prevent infinite recursion for self-linking doktype=3 pages

Oliver Hader CR +2 V +2 Normal +73 −1 updated 07/23/26, 10:18

Commit message

A page of doktype "Link" whose link resolves to the current
page (e.g. link = '#') recursed indefinitely in
PageLinkBuilder::buildLink(), since "current" always resolves
to the page currently rendered for the request. This was
directly triggerable by visiting such a page's own frontend
URL, since ShortcutAndMountPointRedirect hits the same code
path while still holding the page-cache generation lock.

Reject a page linking to itself before recursing: since
"current" always resolves to the page currently being
rendered, resolving it again on the same page is guaranteed
to reproduce the identical state forever. Also stop the
middleware from redirecting to an empty target URL when
resolution fails.

Review

  • Code review CR +2 Done
    • Oliver Hader +2
  • Verified V +2 Done
    • Oliver Hader +2
    • core-ci +1 CI

Issues 1

Files 4

Review log 34

  1. Oliver Hader uploaded patch set 1 07/23/26, 10:03

  2. core-ci voted on patch set 1 V +1 07/23/26, 10:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105232

  3. Oliver Hader voted on patch set 1 CR +2 V +2 07/23/26, 10:18

  4. Oliver Hader merged patch set 2 07/23/26, 10:18