Page MenuHomePhabricator

PHP Notice in old pre-processor when list item is empty
Closed, ResolvedPublic

Description

Author: cedric

Description:
2095 $term = $t2 = '';
2096 if ($this->findColonNoLinks($t, $term, $t2) !== false) {
2097 $t = $t2;

2149 if ( ' ' == $t{0} and ( $this->mLastSection == 'pre' or trim($t) != '' ) ) {

if $t equals '' we have a notice error:
PHP Notice: Uninitialized string offset: 0 in includes/Parser_OldPP.php on line 2149


Version: 1.12.x
Severity: enhancement

Details

Reference
bz13554

Event Timeline

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

cedric wrote:

patch

Attached: