X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/ae8b0ce039e170167dafde722ca42b1008667cf9..92660e5c44d25cee93a7a9f531eb30f4ae9c061d:/f.php?ds=inline diff --git a/f.php b/f.php index 953d20e..fbf466a 100644 --- a/f.php +++ b/f.php @@ -125,7 +125,7 @@ if (!empty ($link['key'])) '
'; ?> + 'method = "post" id = "submit_post">'; ?> ' . '' . t('Password protection') . @@ -138,7 +138,7 @@ if (!empty ($link['key'])) '' . ''; ?>

' . t('Access denied') . '

'; @@ -183,7 +182,7 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev ''; ?> + 'method = "post" id = "submit_post">'; ?> ' . $link['file_name'] . '' . ''; echo '
' . @@ -192,24 +191,24 @@ if ($cfg['download_page'] && !$password_challenged && !$do_download && !$do_prev '
' . t('By using our services, you accept our'). ' ' . t('Term Of Service') . ''; ?>
'; @@ -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. */