From e154e35ad6ebe8163f3194030c107381e591c14d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 28 Feb 2014 08:26:53 +0000 Subject: [PATCH] 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 --- etemplate/inc/class.soetemplate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.soetemplate.inc.php b/etemplate/inc/class.soetemplate.inc.php index 1023a77997..c1101a4da5 100644 --- a/etemplate/inc/class.soetemplate.inc.php +++ b/etemplate/inc/class.soetemplate.inc.php @@ -878,8 +878,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 {