* finish task#885.

This commit is contained in:
wangchunsheng
2012-08-31 08:43:40 +00:00
parent f3caba603e
commit 31e1608fdf
+2
View File
@@ -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);