mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-26 09:04:07 +01:00
Update protocol whitelist for rails-html-sanitizer
This commit is contained in:
parent
d42bf5141e
commit
3ecf9d6cfc
2 changed files with 1 additions and 3 deletions
|
|
@ -34,9 +34,6 @@ module Tracksapp
|
||||||
# configure Tracks to handle deployment in a subdir
|
# configure Tracks to handle deployment in a subdir
|
||||||
config.relative_url_root = SITE_CONFIG['subdir'] if SITE_CONFIG['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
|
config.middleware.insert_after ActionDispatch::ParamsParser, ActionDispatch::XmlParamsParser
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
1
config/initializers/sanitizer.rb
Normal file
1
config/initializers/sanitizer.rb
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Loofah::HTML5::WhiteList::ALLOWED_PROTOCOLS.merge(%w(message onenote))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue