From ef9cc92be501c86c5e46be6fff71613620bfa037 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 16 Sep 2009 07:58:14 +0000 Subject: [PATCH] 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) --- header.inc.php.template | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/header.inc.php.template b/header.inc.php.template index 67f0a9eb4a..67c1d77677 100644 --- a/header.inc.php.template +++ b/header.inc.php.template @@ -96,7 +96,10 @@ $GLOBALS['egw_info']['server']['versions']['header'] = '1.29'; if(!isset($GLOBALS['egw_info']['flags']['noapi']) || !$GLOBALS['egw_info']['flags']['noapi']) { - ob_start(); // to prevent error messages to be send before our headers + 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 + } require_once(EGW_API_INC . '/functions.inc.php'); } else