Page MenuHomePhabricator

wikitext table parser barfs on html zero char
Closed, ResolvedPublic

Description

Author: finlay_mediazilla_23c9

Description:
The following wikitext

{| style="background:green"

�
}

breaks the wikitext html parser. All subsequent wikitext isn't shown, and the
generated html doesn't close the table markup properly; so that "green"
background bleeds into the page elements following the rendered wikitext (nasty
on classic skin, very nasty on monobook).

Note: I tested this on en.wikipedia.org and meta.wikimedia.org and it happens on
both. It >doesn't< happen on my home 1.4.2 installation (which handles it
perfectly well). The wikimedia servers run PHP 4.3.11, I run PHP 5.0.4
(apache2handler), so I guess it's a difference in the PHP libraries.


Version: 1.4.x
Severity: minor
OS: Windows XP
Platform: Other
URL: http://en.wikipedia.org/wiki/User:John_Fader/sandbox

Details

Reference
bz1966

Revisions and Commits

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:19 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz1966.
bzimport added a subscriber: Unknown Object (MLST).

jeluf wrote:

Duplicate of Bug http://pecl.php.net/bugs/bug.php?id=4202

The &#x0; confuses tidy, not MediaWiki.

Closed bug as this has to be fixed by tidy team.

alphasigmax wrote:

Appears to be a duplicate of [[Bugzilla:1938]]
(http://bugzilla.wikipedia.org/show_bug.cgi?id=1938)

Installed patched tidy extension, works now.

Diffusion added a commit: Unknown Object (Diffusion Commit).Mar 4 2015, 8:24 AM