Page MenuHomePhabricator

Undefined offset notice in MagicWord.php on bad input
Closed, ResolvedPublic

Description

Author: robchur

Description:
[Report from Nick Jenkins; I'm putting it in the proper location...]

This wiki text:

[[Image:px|]]

produces this PHP notice at the top of the page:

<b>Notice</b>: Undefined offset: 1 in
<b>/var/www/hosts/mediawiki/phase3/includes/MagicWord.php</b> on line
<b>318</b><br />


Version: 1.7.x
Severity: normal

Details

Reference
bz6526

Event Timeline

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

nickpj wrote:

Thank you Rob (I'll file a few others that are outstanding in bugzilla).

Please note that error_reporting should be set to E_ALL in LocalSettings.php to
see this.

Note: patch above passed parsertests.