summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/attachments_controller.rb2
-rw-r--r--app/controllers/previews_controller.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb
index c5f615d20..5d705844b 100644
--- a/app/controllers/attachments_controller.rb
+++ b/app/controllers/attachments_controller.rb
@@ -239,7 +239,7 @@ class AttachmentsController < ApplicationController
def detect_content_type(attachment, is_thumb = false)
content_type = attachment.content_type
if content_type.blank? || content_type == "application/octet-stream"
- content_type =
+ content_type =
Redmine::MimeType.of(attachment.filename).presence ||
"application/octet-stream"
end
diff --git a/app/controllers/previews_controller.rb b/app/controllers/previews_controller.rb
index 716d27cae..e431ab0de 100644
--- a/app/controllers/previews_controller.rb
+++ b/app/controllers/previews_controller.rb
@@ -18,7 +18,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class PreviewsController < ApplicationController
- before_action :find_project, :except => :text
+ before_action :find_project, :except => :text
before_action :find_attachments
def issue