Permalink
Browse files

Merge pull request #940 from Herbaciarz/patch-1

Fix of output buffering error (problem with downloading files)
  • Loading branch information...
2 parents a9e27dd + 4788deb commit c989804661ffd7ce55487202ae31cb550ad1a4f7 @daeks daeks committed on GitHub Sep 20, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 components/filemanager/download.php
@@ -73,7 +73,8 @@
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($download_file));
- ob_clean();
+ if (ob_get_contents())
+ ob_end_clean();
flush();
readfile($download_file);
// Remove temp tarball

0 comments on commit c989804

Please sign in to comment.