Bug #44270 ยป patch-44270.diff
/var/www/html/typo3_src-6.2.14/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 2015-09-01 15:57:35.000000000 +0200 | ||
---|---|---|
$wPK
|
||
));
|
||
}
|
||
preg_match_all('/###([\w:-]+)###/', $content, $matches);
|
||
$tagArray = $matches[1];
|
||
if (is_array($tagArray)) {
|
||
$tagArray = array_flip($tagArray);
|
||
}
|
||
$aKeys = array_flip($aKeys);
|
||
$bKeys = array();
|
||
// Traverse keys and quote them for reg ex.
|
||
foreach ($aKeys as $tK => $tV) {
|
||
$aKeys[$tK] = preg_quote($tV, '/');
|
||
foreach ($tagArray as $tV => $tK) {
|
||
$tV = '###' . $tV . '###';
|
||
if (isset($aKeys[$tV])) {
|
||
$bKeys[$tK] = preg_quote($tV, '/');
|
||
}
|
||
}
|
||
$regex = '/' . implode('|', $aKeys) . '/';
|
||
$regex = '/' . implode('|', $bKeys) . '/';
|
||
// Doing regex's
|
||
$storeArr['c'] = preg_split($regex, $content);
|
||
preg_match_all($regex, $content, $keyList);
|