From b6b282ab365cae2f470a029fef1b0c2ae81165ff Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 20 Mar 2001 18:02:48 +0000 Subject: [PATCH] Force download of pdb type output --- addressbook/export.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/export.php b/addressbook/export.php index 4bbd042e86..6b230ce807 100644 --- a/addressbook/export.php +++ b/addressbook/export.php @@ -101,9 +101,10 @@ $tsvfilename = $phpgw_info['server']['temp_dir'].$sep.$tsvfilename; - if ($download == "on") { + if ( ($download == "on") || ($o->type == 'pdb') ) { header("Content-disposition: attachment; filename=\"".$tsvfilename."\""); header("Content-type: application/octetstream"); + header("Content-length: ".strlen($buffer); header("Pragma: no-cache"); header("Expires: 0"); echo $buffer;