Fix DATA CORRUPTION BUG caused by double-escaping.
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 29 Sep 2004 08:41:38 +0000 (08:41 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 29 Sep 2004 08:41:38 +0000 (08:41 +0000)
maintenance/compressOld.inc

index 9f1700d..c88396b 100644 (file)
@@ -39,7 +39,7 @@ function compressPage( $row ) {
        }
        $dbw =& wfGetDB( DB_MASTER );
        $flags = $row->old_flags ? "{$row->old_flags},gzip" : "gzip";
-       $compress = $dbw->strencode( gzdeflate( $row->old_text ) );
+       $compress = gzdeflate( $row->old_text );
        $dbw->update( 'old', 
                array( /* SET */
                        'old_flags' => $flags,