Index: trunk/phase3/includes/Article.php |
— | — | @@ -1415,11 +1415,16 @@ |
1416 | 1416 | function doEdit( $text, $summary, $flags = 0, $baseRevId = false, $user = null ) { |
1417 | 1417 | global $wgUser, $wgDBtransactions, $wgUseAutomaticEditSummaries; |
1418 | 1418 | |
| 1419 | + # Low-level sanity check |
| 1420 | + if( $this->mTitle->getText() == '' ) { |
| 1421 | + throw new MWException( 'Something is trying to edit an article with an empty title' ); |
| 1422 | + } |
| 1423 | + |
| 1424 | + wfProfileIn( __METHOD__ ); |
| 1425 | + |
1419 | 1426 | if ($user == null) { |
1420 | 1427 | $user = $wgUser; |
1421 | 1428 | } |
1422 | | - |
1423 | | - wfProfileIn( __METHOD__ ); |
1424 | 1429 | $good = true; |
1425 | 1430 | |
1426 | 1431 | if ( !($flags & EDIT_NEW) && !($flags & EDIT_UPDATE) ) { |