From e9234685841e90d0e4804111ea5050de591d4b2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Thu, 26 Aug 2010 07:50:49 +0000 Subject: [PATCH] =?UTF-8?q?Bugfix=20-=20Zipdownload=20funktioniert=20nun?= =?UTF-8?q?=20auch=20bei=20gr=C3=B6=C3=9Feren=20Zip-Files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/private/tools/projektabgabe.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cis/private/tools/projektabgabe.php b/cis/private/tools/projektabgabe.php index 483104f43..d7705c3ac 100644 --- a/cis/private/tools/projektabgabe.php +++ b/cis/private/tools/projektabgabe.php @@ -308,7 +308,16 @@ else { header('Content-Type: application/octet-stream'); header('Content-disposition: attachment; filename="Abgabe_'.$s->kuerzel.'.zip"'); - echo file_get_contents($zipausgabe); + $handle = fopen($zipausgabe, "rb"); + + while (!feof($handle)) + { + echo fread($handle, 1024); + } + + fclose($handle); + + //echo file_get_contents($zipausgabe); unlink($zipausgabe); } else