Drop unneed part of header which causes troubles to some programs (bug #1037737).

This commit is contained in:
Michal Čihař
2004-10-19 16:55:47 +00:00
parent f95db7a99a
commit 56a4cdc4cd
2 changed files with 7 additions and 3 deletions

View File

@@ -28,6 +28,8 @@ $Source$
#1039193).
* server_privileges.php: Make non-js checkall work also for adding new
user (bug #1028055).
* libraries/zip.lib.php: Drop unneed part of header which causes troubles
to some programs (bug #1037737).
2004-10-17 Marc Delisle <lem9@users.sourceforge.net>
* lang/turkish update, thanks to boralioglu.

View File

@@ -124,9 +124,11 @@ class zipfile
// "data descriptor" segment (optional but necessary if archive is not
// served as file)
$fr .= pack('V', $crc); // crc32
$fr .= pack('V', $c_len); // compressed filesize
$fr .= pack('V', $unc_len); // uncompressed filesize
// nijel(2004-10-19): this seems not to be needed at all and causes
// problems in some cases (bug #1037737)
//$fr .= pack('V', $crc); // crc32
//$fr .= pack('V', $c_len); // compressed filesize
//$fr .= pack('V', $unc_len); // uncompressed filesize
// add this entry to array
$this -> datasec[] = $fr;