Last modified: 2014-11-19 20:19:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75487, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73487 - Parser: Fix "Undefined offset in Sanitizer.php on line 584"
Parser: Fix "Undefined offset in Sanitizer.php on line 584"
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.25-git
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-16 14:56 UTC by Sam Reed (reedy)
Modified: 2014-11-19 20:19 UTC (History)
1 user (show)

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


Attachments

Description Sam Reed (reedy) 2014-11-16 14:56:07 UTC
2014-11-16 14:10:48 mw1215 frwiki: [6f585032] /w/index.php?title=Trait%C3%A9_de_Saint-Germain-en-Laye_(1624)&action=edit&redlink=1   ErrorException from line 584 of /sr
v/mediawiki/php-1.25wmf7/includes/Sanitizer.php: Undefined offset: 5
2014-11-16 14:10:48 mw1215 frwiki: [1ac8f7a1] /w/index.php?title=Trait%C3%A9_de_Saint-Germain-en-Laye_(1624)&action=edit&redlink=1   ErrorException from line 584 of /sr
v/mediawiki/php-1.25wmf7/includes/Sanitizer.php: Undefined offset: 4
2014-11-16 14:10:48 mw1215 frwiki: [24139ec3] /w/index.php?title=Trait%C3%A9_de_Saint-Germain-en-Laye_(1624)&action=edit&redlink=1   ErrorException from line 584 of /sr
v/mediawiki/php-1.25wmf7/includes/Sanitizer.php: Undefined offset: 3
2014-11-16 14:10:48 mw1215 frwiki: [c70e563f] /w/index.php?title=Trait%C3%A9_de_Saint-Germain-en-Laye_(1624)&action=edit&redlink=1   ErrorException from line 584 of /sr
v/mediawiki/php-1.25wmf7/includes/Sanitizer.php: Undefined offset: 2
2014-11-16 14:10:48 mw1215 frwiki: [f2c7bad0] /w/index.php?title=Trait%C3%A9_de_Saint-Germain-en-Laye_(1624)&action=edit&redlink=1   ErrorException from line 584 of /sr
v/mediawiki/php-1.25wmf7/includes/Sanitizer.php: Undefined offset: 1


				preg_match(
					'/^(\\/?)(\\w+)([^>]*?)(\\/{0,1}>)([^<]*)$/',
					$x,
					$regs
				);

				wfSuppressWarnings();
				list( /* $qbar */, $slash, $t, $params, $brace, $rest ) = $regs;
				wfRestoreWarnings();





I note this is still being logged even though we're suppressing warnings. I guess that's a different bug. But this code should be checking if preg_match even worked....

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


Navigation
Links