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 Normal.Nov 21 2014, 10:27 PM
bzimport set Reference to bz16744.
P.Copp created this task.Dec 21 2008, 5:21 PM

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:

brion added a comment.Dec 22 2008, 7:19 PM

Sounds like same base issue as bug 16129.

IAlex added a comment.Apr 14 2009, 5:45 PM

fixed in r49471.