Index: branches/wmf/1.17wmf1/includes/HistoryBlob.php |
— | — | @@ -453,13 +453,17 @@ |
454 | 454 | $header = unpack( 'Vofp/Vcsize', substr( $diff, 0, 8 ) ); |
455 | 455 | |
456 | 456 | # Check the checksum if mhash is available |
457 | | - if ( function_exists( 'mhash' ) ) { |
| 457 | + # TEMPORARY WMF PATCH -- temporarily disable hash check, since a large number of |
| 458 | + # revisions appear to have hash mismatches |
| 459 | + /* |
| 460 | + if ( extension_loaded( 'mhash' ) ) { |
458 | 461 | $ofp = mhash( MHASH_ADLER32, $base ); |
459 | 462 | if ( $ofp !== substr( $diff, 0, 4 ) ) { |
460 | 463 | wfDebug( __METHOD__. ": incorrect base checksum\n" ); |
461 | 464 | return false; |
462 | 465 | } |
463 | | - } |
| 466 | + }*/ |
| 467 | + #### END WMF PATCH |
464 | 468 | if ( $header['csize'] != strlen( $base ) ) { |
465 | 469 | wfDebug( __METHOD__. ": incorrect base length\n" ); |
466 | 470 | return false; |