Index: branches/wmf/1.18wmf1/includes/HistoryBlob.php |
— | — | @@ -516,13 +516,17 @@ |
517 | 517 | $header = unpack( 'Vofp/Vcsize', substr( $diff, 0, 8 ) ); |
518 | 518 | |
519 | 519 | # Check the checksum if mhash is available |
| 520 | + # TEMPORARY WMF PATCH -- temporarily disable hash check, since a large number of |
| 521 | + # revisions appear to have hash mismatches |
| 522 | + /* |
520 | 523 | if ( extension_loaded( 'mhash' ) ) { |
521 | 524 | $ofp = mhash( MHASH_ADLER32, $base ); |
522 | 525 | if ( $ofp !== substr( $diff, 0, 4 ) ) { |
523 | 526 | wfDebug( __METHOD__. ": incorrect base checksum\n" ); |
524 | 527 | return false; |
525 | 528 | } |
526 | | - } |
| 529 | + }*/ |
| 530 | + #### END WMF PATCH |
527 | 531 | if ( $header['csize'] != strlen( $base ) ) { |
528 | 532 | wfDebug( __METHOD__. ": incorrect base length\n" ); |
529 | 533 | return false; |