Last modified: 2012-10-16 15:31:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 12339 - Inconsistent table recognition
Inconsistent table recognition
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
Depends on:
  Show dependency treegraph
Reported: 2007-12-18 12:47 UTC by Jared Williams
Modified: 2012-10-16 15:31 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Jared Williams 2007-12-18 12:47:42 UTC
Browsing more Parser.php r28588 code and found this inconsistency.

Parser::doTableStuff() ( Parser.php:740 ) trim()s the line before attempting to match table tokens. Thereby allowing a table token to appear after whitespace or NUL characters. 


Bug #529 resolution in Parser::braceSubstitution() ( Parser.php:3354 ) doesn't take into account possible whitespace or NUL characters.

if (!$piece['lineStart'] && preg_match('/^(?:{\\||:|;|#|\*)/', $text)) /*}*/{
	$text = "\n" . $text;
Comment 1 Andre Klapper 2012-10-16 15:31:32 UTC
Current code says:;a=blob;f=includes/parser/Parser.php;h=8671665ffc8cec343f8852dbdfa4e238a8591011;hb=HEAD#l3462

3463                         && !$piece['lineStart']
3464                         && preg_match( '/^(?:{\\||:|;|#|\*)/', $text ) )

so I guess this is still valid...

Note You need to log in before you can comment on or make changes to this bug.