Review 13.4 Merged

90476[BUGFIX] Do not cast PID of file reference to int in HTML

Christian Kuhn CR +2 V +2 Easy +1 −1 updated 08/22/25, 13:45

Commit message

The value of the PID of a new file reference may not be
an integer, but a string with a "NEW..." reference. This
can happen if a file is added to a page field, like "media",
when that page was not saved yet.

Instead write the value as as string, with htmlspecialchars
applied. This is the same behaviour as the InlineRecordContainer

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Christian Kuhn uploaded patch set 1 08/22/25, 13:26

  2. core-ci voted on patch set 1 V +1 08/22/25, 13:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/83763

  3. Christian Kuhn voted on patch set 1 CR +2 V +2 08/22/25, 13:45

  4. Christian Kuhn merged patch set 2 08/22/25, 13:45