]> source.dussan.org Git - redmine.git/commitdiff
Always serve thumbnails with disposition: attachment (#38417).
authorGo MAEDA <maeda@farend.jp>
Mon, 18 Sep 2023 02:14:35 +0000 (02:14 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 18 Sep 2023 02:14:35 +0000 (02:14 +0000)
Patch by Holger Just.

git-svn-id: https://svn.redmine.org/redmine/trunk@22294 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/attachments_controller.rb

index acd167240833d6903749e4139390393fa59d6b27..06a236c2c0d7e6c00e81048587bfc05dbe6dfec2 100644 (file)
@@ -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