Page MenuHomePhabricator

CategoryTree: If called on non-existent category, exposes strip markers
Closed, ResolvedPublic


When <categorytree>Foo</categorytree> is called on an non-existent category Foo, all strip markers before the tag are left stripped (see URL). Probably, there's a recursive call to the parser inside the extension which clears the parser state.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:27 PM
bzimport set Reference to bz16744.

proposed fix: wfMsgExt->wfMsgHtml

attachment categorytree.patch ignored as obsolete

Probably related to bug 16129, maybe even a duplicate.

(In reply to comment #2)

Probably related to bug 16129, maybe even a duplicate.

Somehow related, yes. The cause is in both cases calling $wgParser->parse recursively, which clears the parser state and thus loses strip marker info.

Change to wfMsgForContent so HTML markup can be used

Sorry, I didn't notice that some of the messages used HTML markup.


Patch for i18n file, change ''$1'' to <i>$1</i>


Sounds like same base issue as bug 16129.