diff options
author | Go MAEDA <maeda@farend.jp> | 2023-09-18 02:14:35 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-09-18 02:14:35 +0000 |
commit | 3de94139172087341a61e023a0da61d95bf933d7 (patch) | |
tree | 775bf12198b95ef320b4b9f7fd93be1fc833c5b5 /app/controllers | |
parent | deb792981b75040001258ecc780dd0b277e7362e (diff) | |
download | redmine-3de94139172087341a61e023a0da61d95bf933d7.tar.gz redmine-3de94139172087341a61e023a0da61d95bf933d7.zip |
Always serve thumbnails with disposition: attachment (#38417).
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22294 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/attachments_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb index acd167240..06a236c2c 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -89,7 +89,7 @@ class AttachmentsController < ApplicationController tbnail, :filename => filename_for_content_disposition(@attachment.filename), :type => detect_content_type(@attachment, true), - :disposition => 'inline') + :disposition => 'attachment') end else # No thumbnail for the attachment or thumbnail could not be created |