Project

General

Profile

Actions

Feature #105784

open

ContentObjectRenderer->replacementSingle false useRegExp

Added by Marcus Förster about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2024-12-07
Due date:
% Done:

0%

Estimated time:
PHP Version:
8.2
Tags:
Complexity:
Sprint Focus:

Description

typoscript ; should use simple `str_replace`

lib.parseFunc_header.nonTypoTagStdWrap.replacement {
  1.search    = \\
  1.replace   = <br>
  1.useRegExp = 1
}
results in
PHP Warning: preg_replace(): Delimiter must not be alphanumeric, backslash, or NUL

@ https://github.com/TYPO3/typo3/blob/14dd20ef59a8e4fb259704d22d37df80023690fb/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php#L3031-L3049
internal RegEx delimiter logic breaks => may add a check for more than two char

Actions #1

Updated by Marcus Förster about 1 month ago · Edited

  • Target version deleted (next-patchlevel)
  • Private changed from No to Yes
Actions #2

Updated by Marcus Förster about 1 month ago

  • Subject changed from ContentObjectRenderer->stdWrap_replacement receives altered data to ContentObjectRenderer->replacementSingle false useRegExp
  • Description updated (diff)
Actions #3

Updated by Marcus Förster about 1 month ago

  • Private changed from Yes to No
Actions #4

Updated by Marcus Förster about 1 month ago

  • Description updated (diff)
Actions #5

Updated by Marcus Förster about 1 month ago

  • Tracker changed from Bug to Feature
  • TYPO3 Version deleted (12)
Actions

Also available in: Atom PDF