X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/a41981033b2828c7fd38a47f8e6410122137f99a..92660e5c44d25cee93a7a9f531eb30f4ae9c061d:/f.php?ds=sidebyside
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. */