aboutsummaryrefslogtreecommitdiffstats
path: root/config/environment.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-12-22 10:55:30 +0000
committerLouise Crow <louise.crow@gmail.com>2014-12-22 17:31:09 +0000
commit8f5c04b9ecd82521a1aef94e32dee994b1acde8c (patch)
tree8a3d372da01a69a739352526cb607dd42cace20f /config/environment.rb
parent090122a9fd74aba6074d5e1b52aa54d40a9985d1 (diff)
Sanitize the contents of HTML attachments before display
Diffstat (limited to 'config/environment.rb')
-rw-r--r--config/environment.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb
index 9f973feb1..75e6130fe 100644
--- a/config/environment.rb
+++ b/config/environment.rb
@@ -62,6 +62,9 @@ Rails::Initializer.run do |config|
# Only load the plugins named here, by default all plugins in vendor/plugins are loaded
# config.plugins = %W( exception_notification ssl_requirement )
+ # Allow some extra tags to be whitelisted in the 'sanitize' helper method
+ config.action_view.sanitized_allowed_tags
+
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{Rails.root}/extras )