diff --git a/web/includes/Filter.php b/web/includes/Filter.php index 9cabe86fb..ac2ebb61a 100644 --- a/web/includes/Filter.php +++ b/web/includes/Filter.php @@ -11,6 +11,7 @@ public $defaults = array( 'AutoDelete' => 0, 'AutoArchive' => 0, 'AutoVideo' => 0, + 'AutoUpload' => 0, 'AutoMessage' => 0, 'AutoMove' => 0, 'AutoMoveTo' => 0, diff --git a/web/views/archive.php b/web/views/archive.php index 017c1f0a7..c45c475ce 100644 --- a/web/views/archive.php +++ b/web/views/archive.php @@ -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) );