From 3de94139172087341a61e023a0da61d95bf933d7 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 18 Sep 2023 02:14:35 +0000 Subject: [PATCH] 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 --- app/controllers/attachments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5