Bug #92194
Updated by Oliver Hader over 1 year ago
$this->_parseFunc($data, $tagConfig) in ContentObjectRenderer::_parseFunc() where the tags are parsed returns a string wrapped in <p></p>. E.G. $tag is @img@ @$data img "$data = $this->_parseFunc($data, $conf);@ $conf);" returns @<p><img .....></p>@ "<p><img .....></p>" but should return @<img ....>@. "<img ....>". I Think this happens because @$data "$data = $this->_parseFunc($data, $conf);@ $conf);" uses $conf als param. But i think it should use $tagConfig instead. <pre> if @if (strpos($data, '<') !== false && isset($conf['tags.']) && is_array($conf['tags.'])) { foreach ($conf['tags.'] as $tag => $tagConfig) { // only match tag `a` in `<a href"...">` but not in `<abbr>` if (preg_match('#<' . $tag . '[\s/>]#', $data)) { $data = $this->_parseFunc($data, $conf); break; } } } </pre> }@ <pre> if @if (strpos($data, '<') !== false && isset($conf['tags.']) && is_array($conf['tags.'])) { foreach ($conf['tags.'] as $tag => $tagConfig) { // only match tag `a` in `<a href"...">` but not in `<abbr>` if (preg_match('#<' . $tag . '[\s/>]#', $data)) { $data = $this->_parseFunc($data, $tagConfig); break; } } } </pre> }@