Update protocol whitelist for rails-html-sanitizer

This commit is contained in:
Dan Rice 2016-05-21 20:18:35 -04:00
parent d42bf5141e
commit 3ecf9d6cfc
2 changed files with 1 additions and 3 deletions

View file

@ -34,9 +34,6 @@ module Tracksapp
# configure Tracks to handle deployment in a subdir
config.relative_url_root = SITE_CONFIG['subdir'] if SITE_CONFIG['subdir']
# allow onenote:// and message:// as protocols for urls
config.action_view.sanitized_allowed_protocols = 'onenote', 'message'
config.middleware.insert_after ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser
end
end

View file

@ -0,0 +1 @@
Loofah::HTML5::WhiteList::ALLOWED_PROTOCOLS.merge(%w(message onenote))