continue;
}
$name = $matches[1];
+ $lowerName = strtolower( $name );
$attrStart = $i + strlen( $name ) + 1;
// Find end of tag
}
// Handle ignored tags
- if ( in_array( $name, $ignoredTags ) ) {
+ if ( in_array( $lowerName, $ignoredTags ) ) {
$accum->addNodeWithText( 'ignore', substr( $text, $i, $tagEndPos - $i + 1 ) );
$i = $tagEndPos + 1;
continue;
}
}
// <includeonly> and <noinclude> just become <ignore> tags
- if ( in_array( $name, $ignoredElements ) ) {
+ if ( in_array( $lowerName, $ignoredElements ) ) {
$accum->addNodeWithText( 'ignore', substr( $text, $tagStartPos, $i - $tagStartPos ) );
continue;
}
{
return '<span class="error">Node-count limit exceeded</span>';
}
+ if ( $depth > $this->parser->mOptions->mMaxPPExpandDepth ) {
+ return '<span class="error">Expansion depth limit exceeded</span>';
+ }
+ ++$depth;
$outStack = array( '', '' );
$iteratorStack = array( false, $root );
}
}
}
+ --$depth;
return $outStack[0];
}