Joomla! 3, /libraries/src/Document/Renderer/Html/HeadRenderer.php:
elseif ($type != 'http-equiv' && !empty($content))
{
if (is_array($content))
{
foreach ($content as $value)
{
$buffer .= $tab . '<meta ' . $type . '="' . $name . '" content="' . htmlspecialchars($value, ENT_COMPAT, 'UTF-8') . '" />' . $lnEnd;
}
}
else
{
$buffer .= $tab . '<meta ' . $type . '="' . $name . '" content="' . htmlspecialchars($content, ENT_COMPAT, 'UTF-8') . '" />' . $lnEnd;
}
}
Joomla! 4, /libraries/src/Document/Renderer/Html/MetasRenderer.php:
} elseif ($type !== 'http-equiv' && !empty($contents)) {
$buffer .= $tab . '<meta ' . $type . '="' . $name . '" content="'
. htmlspecialchars($contents, ENT_COMPAT, 'UTF-8') . '">' . $lnEnd;
}
the is_array() option was removed. We can restore it manually, but it is not a good idea to change Joomla! core on every update.
JFactory::getDocument()->setMetaData($name, $value) accepts $value as an array and produces multiple META tags
there is an error because htmlspecialchars() does not accept an array as its argument
As said above, we made a temporary fix via changing the core code, but we prefer not to do so.
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
Labels |
Added:
bug
|