mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixed etemplate.inc.php download (happens only if directory is not writable) has zero length. Caused by output buffering and unbuffered php://stdout instead of php://output used
This commit is contained in:
parent
f83ba23b16
commit
e154e35ad6
@ -878,8 +878,8 @@ class soetemplate
|
|||||||
if (!is_writeable($dir))
|
if (!is_writeable($dir))
|
||||||
{
|
{
|
||||||
// if dir is not writable, download file
|
// if dir is not writable, download file
|
||||||
html::content_header('etemplates.inc.php','application/octet-stream');
|
html::content_header('etemplates.inc.php');
|
||||||
$file = 'php://stdout';
|
$file = 'php://output';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user