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

             Bug #: 28748
           Summary: One multibyte character in parser function output
                    kills all article content
           Product: MediaWiki
           Version: 1.16.4
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: General/Unknown
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Created attachment 8474
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=8474
Parser function extension Bug.php causes article text to be truncated

If a parser function returns any multibyte characters, even one, all article
content gets truncated. The article has no content when rendered. This is
simple to reproduce reliably with PHP 5.3.3 and MediaWiki 1.16.4.

1. Make sure your PHP is 5.3.  We have 5.3.3 on our Linux host (CentOS 5.6).

2. Install the wiki extension Bug.php, attached to this report.

3. Create an article with three lines:

This is the first line.
{{#bug:}}
This is the last line.

4. Save the article. The MediaWiki page is rendered but the article content is
empty. View the HTML source and see there is no article text below the "start
content" comment.

I have reproduced this on 3 different wiki servers.

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