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

           Summary: Leading asterisk, hash, colon or semicolon in parser
                    function output incorrectly parsed as if beginning a
                    line
           Product: MediaWiki
           Version: 1.18-svn
          Platform: All
               URL: http://www.mediawiki.org/wiki/*foo
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: Page rendering
        AssignedTo: [email protected]
        ReportedBy: [email protected]


If the output of a parser function or magic word begins with "*", "#", ":" or
";", it will be parsed as a list item even if it's not actually at the
beginning of a line.

This bug has been observed on both 1.16.1, current wikimedia-deployment and
1.18-svn.  It can be easily reproduced by parsing e.g. "foo{{plural:1|*bar}}",
which should yield "foo*bar".  Instead, the string gets incorrectly parsed as
"foo<ul><li>bar</li></ul>".

Another way to observe this bug (and the context in which it was first noticed)
is to visit a nonexistent page with a leading asterisk in its title: the
{{PAGENAME}} magic word in the noarticletext message also triggers this bug if
its output begins with an asterisk.

-- 
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