diff --git a/CHANGELOG.md b/CHANGELOG.md index d5f38fbe..5bde33d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,9 @@ x.x.x - TODO 2.8.x - 2024xxxx * ... +2.8.1 - 20240902 Fix download filenames + * Fix FileRenderer to send the right Content-Disposition - see issue #102 by @Chirishman + 2.8.0 - 20240901 Support 'kepubify' tool for Kobo * Add FileRenderer class to send files + use sendHeaders * Fix Zipper to allow unicode chars in file names diff --git a/lib/Input/Config.php b/lib/Input/Config.php index 9f13ccc6..7e0a05f8 100644 --- a/lib/Input/Config.php +++ b/lib/Input/Config.php @@ -16,7 +16,7 @@ */ class Config { - public const VERSION = '2.8.0'; + public const VERSION = '2.8.1'; public const ENDPOINT = [ "index" => "index.php", "feed" => "feed.php", diff --git a/lib/Output/FileRenderer.php b/lib/Output/FileRenderer.php index 01817141..9744f90d 100644 --- a/lib/Output/FileRenderer.php +++ b/lib/Output/FileRenderer.php @@ -75,7 +75,7 @@ public static function sendFile($filepath, $filename = null, $mimetype = null, $ } elseif (empty($filename)) { header('Content-Disposition: inline'); } else { - header('Content-Disposition: attachment; filepath="' . basename($filename) . '"'); + header('Content-Disposition: attachment; filename="' . basename($filename) . '"'); } // @todo clean up nginx x_accel_redirect