From 74cba12de3372acbb6b09c5743c2011d0219ef11 Mon Sep 17 00:00:00 2001 From: Kevin Israel Date: Mon, 20 Oct 2014 02:52:02 -0400 Subject: [PATCH] CoreParserFunctions::displaytitle(): Use Parser::killMarkers() ... instead of doing something similar to an old version of it. Change-Id: I78db194291236208843a13b80d322d403774796c --- includes/parser/CoreParserFunctions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index 355a3c1216..d45b32f0ed 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -379,8 +379,7 @@ class CoreParserFunctions { $text = $parser->doQuotes( $text ); // remove stripped text (e.g. the UNIQ-QINU stuff) that was generated by tag extensions/whatever - $text = preg_replace( '/' . preg_quote( $parser->uniqPrefix(), '/' ) . '.*?' - . preg_quote( Parser::MARKER_SUFFIX, '/' ) . '/', '', $text ); + $text = $parser->killMarkers( $text ); // list of disallowed tags for DISPLAYTITLE // these will be escaped even though they are allowed in normal wiki text -- 2.20.1