https://bugzilla.wikimedia.org/show_bug.cgi?id=32368

Brad Jorsch <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected].
                   |                            |edu
            Version|1.18                        |1.20-git

--- Comment #1 from Brad Jorsch <[email protected]> 2012-05-01 
03:36:07 UTC ---
This problem also affects wfMsg, wfMsgForContent, wfMsgHtml, wfMsgWikiHtml,
wfMsgReal and wfMsgGetKey when $transform is true, and wfMsgExt when parse or
parsemag or parseinline is passed, when the value of the message contains a
template. We recently had a problem on enwiki where someone added a template to
[[MediaWiki:Pfunc time error]] leading to Cite.php losing references if there
was an error in a #time parser function.

The basic problem seems to be that MessageCache grabs the global parser object
and then calls functions like parse and transformMsg on it rather than
recursiveTagParse and recursivePreprocess. This particular problem seems like
it could be avoided by having MessageCache gets its own private parser object,
or by deep-cloning the global parser as Daniel Werner mentioned, or by having
MessageCache call recursive-safe functions on the parser object. But I don't
know if any of that would break uses of MessageCache outside of a page parse.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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

Reply via email to