fix wrong header line

This commit is contained in:
Uwe Steinmann 2013-10-30 09:58:17 +01:00
parent abed5d1023
commit d647d27692

View File

@ -77,7 +77,7 @@ if(isset($_GET["version"])) {
if (isset($settings->_viewOnlineFileTypes) && is_array($settings->_viewOnlineFileTypes) && in_array(strtolower($file->getFileType()), $settings->_viewOnlineFileTypes)) {
header("Content-Type: " . $file->getMimeType());
}
header("Content-Disposition: filename=\"" . $file->getOriginalFileName()) . "\"";
header("Content-Disposition: filename=\"" . $file->getOriginalFileName() . "\"");
header("Content-Length: " . filesize($dms->contentDir . $file->getPath() ));
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");