mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 15:26:03 +01:00
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
This commit is contained in:
@@ -430,7 +430,7 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def disposition(path)
|
||||
if Redmine::MimeType.is_type?('image', @path) || Redmine::MimeType.of(@path) == "application/pdf"
|
||||
if Redmine::MimeType.of(@path) == "application/pdf"
|
||||
'inline'
|
||||
else
|
||||
'attachment'
|
||||
|
||||
Reference in New Issue
Block a user