Page MenuHomePhabricator

PHP notice with error_reporting(E_ALL) on bad input to {{padleft}} / {{padright}}
Closed, ResolvedPublic

Description

Author: nickpj

Description:

small thing with the padleft/padright stuff - this wiki text:

{{padright:}}

{{padleft:}}

Gives this on a wiki with error_reporting(E_ALL) enabled:

<b>Warning</b>: Missing argument 3 for CoreParserFunctions::padright() in
<b>/var/www/hosts/mediawiki/phase3/
includes/CoreParserFunctions.php</b> on line <b>154</b><br />
<br />
<b>Notice</b>: Undefined variable: length in
<b>/var/www/hosts/mediawiki/phase3/includes/CoreParserFunctions.

php</b> on line <b>155</b><br />


Version: 1.8.x
Severity: minor

Details

Reference
bz7080

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:26 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz7080.

robchur wrote:

Fixed in SVN trunk, r16149.