FIX prevent death on urls with querystrings & anchors

This commit is contained in:
mikeyc7m 2018-12-12 17:40:51 +11:00 committed by Robbie Averill
parent 5f69063d4f
commit 0491ca03cf

View File

@ -476,7 +476,7 @@ class ShortcodeParser
if ($tags) { if ($tags) {
$node->nodeValue = $this->replaceTagsWithText( $node->nodeValue = $this->replaceTagsWithText(
$node->nodeValue, htmlspecialchars($node->nodeValue),
$tags, $tags,
function ($idx, $tag) use ($parser, $extra) { function ($idx, $tag) use ($parser, $extra) {
return $parser->getShortcodeReplacementText($tag, $extra, false); return $parser->getShortcodeReplacementText($tag, $extra, false);