diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-29 08:03:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-01-29 08:03:26 +0000 |
commit | 34c5b51cf095ddff2f38c44920ecdf428a6fb0b8 (patch) | |
tree | 05a5e78d79f1a1b8286e5211823aa465ff1a83d7 /app/controllers/attachments_controller.rb | |
parent | 868f83fe357ebecdcf466173c809038a3b093742 (diff) | |
download | redmine-34c5b51cf095ddff2f38c44920ecdf428a6fb0b8.tar.gz redmine-34c5b51cf095ddff2f38c44920ecdf428a6fb0b8.zip |
Always send images user-uploaded images with Content-Disposition: attachment (#24199).
Patch by Holger Just.
git-svn-id: http://svn.redmine.org/redmine/trunk@16285 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/attachments_controller.rb')
-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 ad0b1e4b8..441243542 100644 --- a/app/controllers/attachments_controller.rb +++ b/app/controllers/attachments_controller.rb @@ -219,7 +219,7 @@ class AttachmentsController < ApplicationController end def disposition(attachment) - if attachment.is_image? || attachment.is_pdf? + if attachment.is_pdf? 'inline' else 'attachment' |