Page MenuHomePhabricator

lineStart invoked from {{PAGENAME}} breaks messages
Closed, ResolvedPublic

Description

Author: metoaster

Description:
My english isn't good, but i think the link explains itselft...
http://meta.wikimedia.org/wiki/*invalid
also works on every MediaWiki I tested


Version: unspecified
Severity: major
URL: http://meta.wikimedia.org/wiki/*invalid

Details

Reference
bz13378

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 10:02 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz13378.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to comment #1)

Looks like a parser bug

Yes, and I've increased the priority and severity of the bug.

nicdumz wrote:

GlobalFunctions patch

I first noticed that this bug would only occur when using the PAGENAME magicword : The magicwords were escaped, in the Parser, using wfEscapeWikiText(), but * were not being escaped in this function.

Patch included.

Cheers !

Attached:

Patching wfEscapeWikiText() is certainly the wrong way to fix this problem. Suppression of the lineStart (bug 529) behaviour inside links would be more appropriate, and should be easy to implement.

This is another manifestation of the terrible idea implemented in bug 529 and reported in bug 12974, marking as duplicate.

  • This bug has been marked as a duplicate of bug 12974 ***