From 56a4cdc4cda6c99d077b4dd486b8570f3259b9bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 19 Oct 2004 16:55:47 +0000 Subject: [PATCH] Drop unneed part of header which causes troubles to some programs (bug #1037737). --- ChangeLog | 2 ++ libraries/zip.lib.php | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index eee8e3ad2..5ce021e8d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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 * lang/turkish update, thanks to boralioglu. diff --git a/libraries/zip.lib.php b/libraries/zip.lib.php index 8a8f02905..b29435fb6 100644 --- a/libraries/zip.lib.php +++ b/libraries/zip.lib.php @@ -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;