summaryrefslogtreecommitdiffstats
path: root/app/views/settings
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-01 10:41:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-11-01 10:41:02 +0000
commitdd1c5f8900bb95a47209e6a1efea8ea51950fdd4 (patch)
treee745e020f2e1d97874fedbabb5b314a75aefdfa9 /app/views/settings
parente009780eb3f51e3809393bcf8e0f88cf6e638f2a (diff)
downloadredmine-dd1c5f8900bb95a47209e6a1efea8ea51950fdd4.tar.gz
redmine-dd1c5f8900bb95a47209e6a1efea8ea51950fdd4.zip
Files upload restriction by files extensions (#20008).
git-svn-id: http://svn.redmine.org/redmine/trunk@14792 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/settings')
-rw-r--r--app/views/settings/_attachments.html.erb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/settings/_attachments.html.erb b/app/views/settings/_attachments.html.erb
index f8a85c748..818845e55 100644
--- a/app/views/settings/_attachments.html.erb
+++ b/app/views/settings/_attachments.html.erb
@@ -3,6 +3,12 @@
<div class="box tabular settings">
<p><%= setting_text_field :attachment_max_size, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %></p>
+<p><%= setting_text_area :attachment_extensions_allowed %>
+<em class="info"><%= l(:text_comma_separated) %> <%= l(:label_example) %>: txt, png</em></p>
+
+<p><%= setting_text_area :attachment_extensions_denied %>
+<em class="info"><%= l(:text_comma_separated) %> <%= l(:label_example) %>: js, swf</em></p>
+
<p><%= setting_text_field :file_max_size_displayed, :size => 6 %> <%= l(:"number.human.storage_units.units.kb") %></p>
<p><%= setting_text_field :diff_max_lines_displayed, :size => 6 %></p>