Review 14.3 Merged

95291[BUGFIX] Prevent PHP warning on invalid regex in replacement stdWrap

Georg Ringer CR +2 V +2 Easy +19 −0 updated 08/12/26, 13:59

Commit message

When useRegExp is enabled and "search" is not a compilable pattern
(e.g. a single backslash), preg_replace() emitted a warning and
returned null, silently wiping the content. Validate the pattern up
front and skip such invalid actions, keeping the content untouched.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
  • Verified V +2 Done
    • Georg Ringer +2
    • core-ci +1 CI

Issues 1

Files 2

Review log 35

  1. Georg Ringer commented on patch set 1 08/12/26, 13:31

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V -1 08/12/26, 13:43 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106540

  3. core-ci voted on patch set 1 V +1 08/12/26, 13:49 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/106540

  4. Georg Ringer voted on patch set 1 CR +2 V +2 08/12/26, 13:59

  5. Georg Ringer merged patch set 2 08/12/26, 13:59