https://bugzilla.wikimedia.org/show_bug.cgi?id=56167
Web browser: ---
Bug ID: 56167
Summary: Transcluded special pages can calls Parser::parse
recursively, which leads to strip markers and
overridden title
Product: MediaWiki
Version: 1.22-git
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Parser
Assignee: [email protected]
Reporter: [email protected]
Blocks: 26213
Classification: Unclassified
Mobile Platform: ---
Some special pages using OutputPage::wrapWikiMsg (or similar) to add a message,
for example when there is no result.
When that special page (for example Special:RecentchangesLinked) get
transcluded and there is no result, the whole page shows QINU and has the
special page name as title, see the screenshot from a user on dewiki[1][2]
This is happen, because OutputPage::wrapWikiMsg calls OutputPage::addWikiText
calls OutputPage::addWikiTextTitle and that finally calls Parser::parse which
results in a recursively call of that method and that is not a good
idea(CommentDoc contains a note "Do not call this function recursively.")
This means the special page transclusion must be delayed to the end of the
parse or reset $wgParser to a own/new parser object)
Is there a idea to avoid that the strip markers are shown, when a special page
shows no result? That always annoying users on dewiki.
[1]https://de.wikipedia.org/wiki/Datei:Screenwikibug.png
[2]https://de.wikipedia.org/wiki/Datei:Screenwikibug02.png
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l