fixed download of log, in case output buffering could not be switched off (got into endless loop)

This commit is contained in:
Ralf Becker 2012-03-06 13:07:03 +00:00
parent fbcbce0bfe
commit 77928955f0

View File

@ -242,7 +242,7 @@ $j(window).resize(resize_'.$id.');
}
html::content_header(basename($filename),'text/plain');
if ($filename[0] != '/') $filename = $GLOBALS['egw_info']['server']['files_dir'].'/'.$filename;
while(ob_get_level()) ob_end_clean(); // stop all output buffering, to NOT run into memory_limit
for($n=ob_get_level(); $n > 0; --$n) ob_end_clean(); // stop all output buffering, to NOT run into memory_limit
readfile($filename);
common::egw_exit();
}