Merge branch 'master' of github.com:ZoneMinder/ZoneMinder

This commit is contained in:
Isaac Connor 2018-09-21 10:32:02 -04:00
commit c483b4ec90
2 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ public $defaults = array(
'AutoDelete' => 0,
'AutoArchive' => 0,
'AutoVideo' => 0,
'AutoUpload' => 0,
'AutoMessage' => 0,
'AutoMove' => 0,
'AutoMoveTo' => 0,

View File

@ -45,6 +45,7 @@ if ( $archivetype ) {
$filename_path = ZM_DIR_EXPORTS.'/'.$filename;
Logger::Debug("downloading archive from $filename_path");
if ( is_readable($filename_path) ) {
ob_clean();
header("Content-type: application/$mimetype" );
header("Content-Disposition: inline; filename=$filename");
header('Content-Length: ' . filesize($filename_path) );