mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
fixed corrupted (to small) jar file download caused by PHPs stat cache, also removing temp. file
This commit is contained in:
parent
2d503a7089
commit
e77b9c983f
@ -18,6 +18,7 @@ $GLOBALS['egw_info'] = array(
|
||||
)
|
||||
);
|
||||
|
||||
ini_set('zlib.output_compression',0);
|
||||
include('../header.inc.php');
|
||||
|
||||
ob_start();
|
||||
@ -110,7 +111,11 @@ check_load_extension('phar', true);
|
||||
$zip = new PharData($archive);
|
||||
$zip->addFromString($config_file, $xml);
|
||||
unset($zip);
|
||||
// clear stat cache, as otherwise filesize might report an earlier, smaller size!
|
||||
clearstatcache();
|
||||
ob_end_clean();
|
||||
|
||||
html::content_header('egroupware-notifier-'.$GLOBALS['egw_info']['user']['account_lid'].'.jar', 'application/x-java-archive', filesize($archive));
|
||||
readfile($archive,'r');
|
||||
readfile($archive,'rb');
|
||||
|
||||
@unlink($archive);
|
||||
|
Loading…
Reference in New Issue
Block a user