Page MenuHomePhabricator

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

Description

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
URL: http://en.wikipedia.org/w/index.php?title=Wikipedia:WikiProject_Climbing&oldid=254590422

Details

Reference
bz16744

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.

Attached:

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

Attached:

Sounds like same base issue as bug 16129.