summaryrefslogtreecommitdiffstats
path: root/app/controllers/attachments_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2010-01-05 18:16:03 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2010-01-05 18:16:03 +0000
commiteb3b7d055a86cbbfece22b3f47d8bd13a928dbb8 (patch)
tree12db6b839b409438aa833eac48fd4e32231bf135 /app/controllers/attachments_controller.rb
parentf05b77806532747a8cafdebc250ca13f9128610a (diff)
downloadredmine-eb3b7d055a86cbbfece22b3f47d8bd13a928dbb8.tar.gz
redmine-eb3b7d055a86cbbfece22b3f47d8bd13a928dbb8.zip
Fixed: error when downloading a file with no matching mime type (#3782).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3281 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/attachments_controller.rb')
-rw-r--r--app/controllers/attachments_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/attachments_controller.rb b/app/controllers/attachments_controller.rb
index 92fa01e8f..5b2acc8ab 100644
--- a/app/controllers/attachments_controller.rb
+++ b/app/controllers/attachments_controller.rb
@@ -82,6 +82,6 @@ private
if content_type.blank?
content_type = Redmine::MimeType.of(attachment.filename)
end
- content_type
+ content_type.to_s
end
end