mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
* removing memory limit from backup download, by switching off output buffering and zlib output compression
This commit is contained in:
parent
ef8ac254a4
commit
403600fdd9
@ -37,11 +37,10 @@ if ($_POST['download'])
|
|||||||
{
|
{
|
||||||
list($file) = each($_POST['download']);
|
list($file) = each($_POST['download']);
|
||||||
$file = $db_backup->backup_dir.'/'.basename($file); // basename to now allow to change the dir
|
$file = $db_backup->backup_dir.'/'.basename($file); // basename to now allow to change the dir
|
||||||
ob_end_clean();
|
while (@ob_end_clean()) ; // end all active output buffering
|
||||||
|
ini_set('zlib.output_compression',0); // switch off zlib.output_compression, as this would limit downloads in size to memory_limit
|
||||||
html::content_header(basename($file));
|
html::content_header(basename($file));
|
||||||
$f = fopen($file,'rb');
|
readfile($file);
|
||||||
fpassthru($f);
|
|
||||||
fclose($f);
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
$setup_tpl = CreateObject('phpgwapi.Template',$tpl_root);
|
$setup_tpl = CreateObject('phpgwapi.Template',$tpl_root);
|
||||||
|
Loading…
Reference in New Issue
Block a user