[BUGFIX] Avoid overly large regex in substituteMarkerArrayCached 32/45132/2
authorBenni Mack <benni@typo3.org>
Fri, 4 Dec 2015 22:54:45 +0000 (23:54 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 4 Dec 2015 23:01:38 +0000 (00:01 +0100)
commit62a406e37bf8f362e68f399a18a54f8810f8a6b9
tree4f07c94daf46089f781a1ffe2cd83b0f1c33a1a9
parent72ebfbfa1bbe4b77f7c7b7fc87c40d714f4ad24f
[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/45132
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