From 31e1608fdfa3d45aecc164a4db2c65c8833af157 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 31 Aug 2012 08:43:40 +0000 Subject: [PATCH] * finish task#885. --- module/file/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/file/control.php b/module/file/control.php index b2b6f63496..51c745a0d6 100644 --- a/module/file/control.php +++ b/module/file/control.php @@ -203,6 +203,8 @@ class file extends control */ public function sendDownHeader($fileName, $fileType, $content) { + ob_clean(); // clean the ob content to make sure no space or utf-8 bom output. + /* Set the downloading cookie, thus the export form page can use it to judge whether to close the window or not. */ setcookie('downloading', 1);