diff --git a/web/skins/classic/views/video.php b/web/skins/classic/views/video.php index cfbb6f929..6a20ed319 100644 --- a/web/skins/classic/views/video.php +++ b/web/skins/classic/views/video.php @@ -101,6 +101,9 @@ if ( isset($_REQUEST['downloadIndex']) ) header( "Content-Transfer-Encoding: binary" ); header( "Content-Type: application/force-download" ); header( "Content-Length: ".filesize($videoFiles[$downloadIndex]) ); + while ( ob_get_level() > 0 ) { + ob_end_clean(); + } readfile( $videoFiles[$downloadIndex] ); exit; }