From f3201cde5f93313a8e532305e60949ca7b92c8b1 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 24 Aug 2009 00:59:10 +0100 Subject: Smarten tarball code --- includes/tarball.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3