diff options
author | Go MAEDA <maeda@farend.jp> | 2019-10-03 09:30:43 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-10-03 09:30:43 +0000 |
commit | 77639026296c0ce9ada9be5bb2ddf263b32e7904 (patch) | |
tree | 23a7616153e9272f59c080beaa7917f53b8d573a /lib | |
parent | cffc5d6a12add6b058fbfb79b807637f138a3061 (diff) | |
download | redmine-77639026296c0ce9ada9be5bb2ddf263b32e7904.tar.gz redmine-77639026296c0ce9ada9be5bb2ddf263b32e7904.zip |
Use Redmine::MimeType.of instead of regexp to check if the attachment is Textile (#29752).
git-svn-id: http://svn.redmine.org/redmine/trunk@18586 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/mime_type.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/mime_type.rb b/lib/redmine/mime_type.rb index e4801da21..23bd3df1d 100644 --- a/lib/redmine/mime_type.rb +++ b/lib/redmine/mime_type.rb @@ -35,6 +35,7 @@ module Redmine 'text/x-ruby' => 'rb,rbw,ruby,rake,erb', 'text/x-csh' => 'csh', 'text/x-sh' => 'sh', + 'text/x-textile' => 'textile', 'text/xml' => 'xml,xsd,mxml', 'text/yaml' => 'yml,yaml', 'text/csv' => 'csv', |