Bug #85015
closedstdWrap replacement: useRegExp = 0 should not use preg_replace()
100%
Description
Hi,
if I write "useRegExp = 0" within a replacement rule it leads to the following error:
PHP Warning: preg_replace(): Delimiter must not be alphanumeric or backslash
I know it is not necessary to write the line at all but I think it should work anyway and should not accept 0 as "true".
Example:
page.3 = TEXT page.3 { value = There_are_a_cat,_a_dog_and_a_tiger_in_da_hood!_Yeah! stdWrap.replacement { 10 { search = in da hood replace = around the block useRegExp = 0 } } }
Updated by Gerrit Code Review almost 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58945
Updated by Gerrit Code Review almost 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58945
Updated by Gerrit Code Review about 5 years ago
Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62144
Updated by Wolfgang Klinger about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset bef44dd55540c0a4741434007dd201126fcb972a.