Force download of pdb type output

This commit is contained in:
Miles Lott 2001-03-20 18:02:48 +00:00
parent a3784392b4
commit b6b282ab36

View File

@ -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;