From 42de8b5e0a3e0942d817c712bf5c6104b6bf69d8 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 20 Jan 2017 12:18:48 +0100 Subject: [PATCH] Echo attachment content sometimes dont work In a Windows based Webenvironment the attachment of a PNG file is displayed wrong. We have to use ob_start here. --- lib/attachments/attachmentdownload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/attachments/attachmentdownload.php b/lib/attachments/attachmentdownload.php index 1829015612..fe5ce0ffe7 100644 --- a/lib/attachments/attachmentdownload.php +++ b/lib/attachments/attachmentdownload.php @@ -11,7 +11,7 @@ * @since 1.9.14 * */ -@ob_end_clean(); +@ob_start(); require_once('../../config.inc.php'); require_once('../functions/common.php'); require_once('../functions/attachments.inc.php'); @@ -144,4 +144,4 @@ function init_args(&$dbHandler) function checkRights(&$db,&$user) { return (config_get("attachments")->enabled); -} \ No newline at end of file +}