backported r27314: not switching on output buffering for WebDAV, to make downloads for files > memory_limit possible (requires to rebuild the header via setup >> header admin)

This commit is contained in:
Ralf Becker 2009-09-16 07:58:14 +00:00
parent 53b5e86323
commit ef9cc92be5

View File

@ -95,8 +95,11 @@ unset($setup_info);
$GLOBALS['egw_info']['server']['versions']['header'] = '1.29'; $GLOBALS['egw_info']['server']['versions']['header'] = '1.29';
if(!isset($GLOBALS['egw_info']['flags']['noapi']) || !$GLOBALS['egw_info']['flags']['noapi']) if(!isset($GLOBALS['egw_info']['flags']['noapi']) || !$GLOBALS['egw_info']['flags']['noapi'])
{
if (substr($_SERVER['SCRIPT_NAME'],-10) != 'webdav.php') // dont do it for webdav, as we can not savely switch it off again
{ {
ob_start(); // to prevent error messages to be send before our headers ob_start(); // to prevent error messages to be send before our headers
}
require_once(EGW_API_INC . '/functions.inc.php'); require_once(EGW_API_INC . '/functions.inc.php');
} }
else else