From: Go MAEDA Date: Mon, 18 Sep 2023 02:14:35 +0000 (+0000) Subject: Always serve thumbnails with disposition: attachment (#38417). X-Git-Tag: 5.1.0~84 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3de94139172087341a61e023a0da61d95bf933d7;p=redmine.git 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 --- 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