http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90036
Revision: 90036
Author: tstarling
Date: 2011-06-14 06:10:10 +0000 (Tue, 14 Jun 2011)
Log Message:
-----------
Reverted r89927 and applied a more appropriate fix for the reported hash
mismatches.
Modified Paths:
--------------
branches/wmf/1.17wmf1/includes/HistoryBlob.php
Modified: branches/wmf/1.17wmf1/includes/HistoryBlob.php
===================================================================
--- branches/wmf/1.17wmf1/includes/HistoryBlob.php 2011-06-14 06:07:20 UTC
(rev 90035)
+++ branches/wmf/1.17wmf1/includes/HistoryBlob.php 2011-06-14 06:10:10 UTC
(rev 90036)
@@ -453,13 +453,17 @@
$header = unpack( 'Vofp/Vcsize', substr( $diff, 0, 8 ) );
# Check the checksum if mhash is available
- if ( function_exists( 'mhash' ) ) {
+ # TEMPORARY WMF PATCH -- temporarily disable hash check, since
a large number of
+ # revisions appear to have hash mismatches
+ /*
+ if ( extension_loaded( 'mhash' ) ) {
$ofp = mhash( MHASH_ADLER32, $base );
if ( $ofp !== substr( $diff, 0, 4 ) ) {
wfDebug( __METHOD__. ": incorrect base
checksum\n" );
return false;
}
- }
+ }*/
+ #### END WMF PATCH
if ( $header['csize'] != strlen( $base ) ) {
wfDebug( __METHOD__. ": incorrect base length\n" );
return false;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs