From 261f807c46c7f705d84b18ea575c140e943a22f8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 6 Mar 2012 13:06:35 +0000 Subject: [PATCH] fixed download of log, in case output buffering could not be switched off (got into endless loop) --- phpgwapi/inc/class.egw_tail.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_tail.inc.php b/phpgwapi/inc/class.egw_tail.inc.php index dc6456ada6..141b5b17d6 100644 --- a/phpgwapi/inc/class.egw_tail.inc.php +++ b/phpgwapi/inc/class.egw_tail.inc.php @@ -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(); }