[BUGFIX] Avoid overly large regex in substituteMarkerArrayCached 97/45097/2
authorMarkus Klein <markus.klein@typo3.org>
Wed, 2 Dec 2015 20:15:11 +0000 (21:15 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 4 Dec 2015 22:52:09 +0000 (23:52 +0100)
commitac77e26331d94ed0521b30fdb5e70fe67fd1fffa
tree46889bc571639395a61b05fb16e0aaee82937ec1
parent58f69d44af9839eb6bac4f6d6ee1b641d9f4b19a
[BUGFIX] Avoid overly large regex in substituteMarkerArrayCached

Fetch the actually used markers from the content and only
generate the replace regex for those.
This avoids problems where 1000 markers may be passed in,
but only 10 are actually used.

Resolves: #44270
Releases: master, 6.2
Change-Id: I05f60960949e945249b045a8ae8e8430f7d8f7e6
Reviewed-on: https://review.typo3.org/45097
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php