The branch, master has been updated
       via  0d4ccd012d3c8046eceb2a5019cdba7754bdbaae (commit)
      from  2e2b123d9c7d3f474f376da5b195928716ce2108 (commit)


- Log -----------------------------------------------------------------
commit 0d4ccd012d3c8046eceb2a5019cdba7754bdbaae
Author: Michal Čihař <[email protected]>
Date:   Mon Jul 18 10:06:31 2011 +0200

    Use old_offset instead of strlen
    
    It is really not needed to use real data as we have the offset stored
    anyway.

-----------------------------------------------------------------------

Summary of changes:
 libraries/zip.lib.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libraries/zip.lib.php b/libraries/zip.lib.php
index 443b173..672b00a 100644
--- a/libraries/zip.lib.php
+++ b/libraries/zip.lib.php
@@ -205,7 +205,7 @@ class zipfile
             pack('v', sizeof($this -> ctrl_dir)) .  // total # of entries "on 
this disk"
             pack('v', sizeof($this -> ctrl_dir)) .  // total # of entries 
overall
             pack('V', strlen($ctrldir)) .           // size of central dir
-            pack('V', strlen($data)) .              // offset to start of 
central dir
+            pack('V', $this -> old_offset) .        // offset to start of 
central dir
             "\x00\x00";                             // .zip file comment length
 
         if ( $this -> doWrite ) {       // Send central directory & end ctrl 
dir to STDOUT


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to