Bug #91194 ยป ContentObjectRenderer.patch
ContentObjectRenderer.patched.php 2020-04-25 11:56:31.300926021 +0200 | ||
---|---|---|
// call this method recursively if found
|
||
if (strpos($data, '<') !== false) {
|
||
foreach ($conf['tags.'] as $tag => $tagConfig) {
|
||
if (strpos($data, '<' . $tag) !== false) {
|
||
if (preg_match('#<' . $tag.'[\s/>]#', $data)) {
|
||
$data = $this->_parseFunc($data, $conf);
|
||
break;
|
||
}
|
||
... | ... | |
// Take care for nested tags
|
||
do {
|
||
$nextMatchingEndTagPosition = strpos($tempContent, $endTag);
|
||
$nextSameTypeTagPosition = strpos($tempContent, $startTag);
|
||
$nextSameTypeTagPosition = preg_match('#'.$startTag.'[\s/>]#', $tempContent, $nextSameStartTagMatches, PREG_OFFSET_CAPTURE) ? $nextSameStartTagMatches[0][1] : false;
|
||
// filter out nested tag contents to help getting the correct closing tag
|
||
if ($nextSameTypeTagPosition !== false && $nextSameTypeTagPosition < $nextMatchingEndTagPosition) {
|