Index: trunk/phase3/includes/Revision.php |
— | — | @@ -530,6 +530,11 @@ |
531 | 531 | if( in_array( 'object', $flags ) ) { |
532 | 532 | # Generic compressed storage |
533 | 533 | $obj = unserialize( $text ); |
| 534 | + if ( !is_object( $obj ) ) { |
| 535 | + // Invalid object |
| 536 | + wfProfileOut( $fname ); |
| 537 | + return false; |
| 538 | + } |
534 | 539 | $text = $obj->getText(); |
535 | 540 | } |
536 | 541 | |