X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/a41981033b2828c7fd38a47f8e6410122137f99a..d496172554ae4ab0dac6e9d7a1e77eb8fd3749df:/f.php diff --git a/f.php b/f.php index e1c858e..fbf466a 100644 --- a/f.php +++ b/f.php @@ -166,7 +166,6 @@ if (!empty ($link['key'])) $password_challenged = true; else { - header ("Access denied"); require (JIRAFEAU_ROOT.'lib/template/header.php'); echo '

' . t('Access denied') . '

'; @@ -198,7 +197,7 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev if (!empty($crypt_key)) echo '&k=' . urlencode($crypt_key); ?>'; - document.getElementById('submit_download').submit ();"/>'; - document.getElementById('submit_preview').submit ();"/>'; echo ''; @@ -220,8 +219,9 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev header ('HTTP/1.0 200 OK'); header ('Content-Length: ' . $link['file_size']); if (!jirafeau_is_viewable ($link['mime_type']) || !$cfg['preview'] || $do_download) - header ('Content-Disposition: attachment; filename="' . - $link['file_name'] . '"'); + header ('Content-Disposition: attachment; filename="' . $link['file_name'] . '"'); +else + header ('Content-Disposition: filename="' . $link['file_name'] . '"'); header ('Content-Type: ' . $link['mime_type']); /* Read encrypted file. */