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:
Ralf Becker 2014-02-28 08:28:07 +00:00
parent a9350e8fc6
commit eb8296ae46

View File

@ -876,8 +876,8 @@ class soetemplate
if (!is_writeable($dir))
{
// if dir is not writable, download file
html::content_header('etemplates.inc.php','application/octet-stream');
$file = 'php://stdout';
html::content_header('etemplates.inc.php');
$file = 'php://output';
}
else
{