forked from extern/egroupware
Force download of pdb type output
This commit is contained in:
parent
a3784392b4
commit
b6b282ab36
@ -101,9 +101,10 @@
|
|||||||
|
|
||||||
$tsvfilename = $phpgw_info['server']['temp_dir'].$sep.$tsvfilename;
|
$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-disposition: attachment; filename=\"".$tsvfilename."\"");
|
||||||
header("Content-type: application/octetstream");
|
header("Content-type: application/octetstream");
|
||||||
|
header("Content-length: ".strlen($buffer);
|
||||||
header("Pragma: no-cache");
|
header("Pragma: no-cache");
|
||||||
header("Expires: 0");
|
header("Expires: 0");
|
||||||
echo $buffer;
|
echo $buffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user