summaryrefslogtreecommitdiff
path: root/includes/tarball.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/tarball.php')
-rw-r--r--includes/tarball.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/tarball.php b/includes/tarball.php
index 737aefa..151bf17 100644
--- a/includes/tarball.php
+++ b/includes/tarball.php
@@ -35,7 +35,9 @@ function return_tarball($name, $contents)
header('Pragma: public');
ob_end_flush();
- $tarball = new Archive_Tar("php://stdout", "bz2");
+ ob_start();
+ $tarball = new Archive_Tar("php://output", "bz2");
$tarball->create($contents);
+ ob_end_flush();
}