mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-22 00:36:12 +01:00
allows onenote urls as links in notes field. Fixes #901. One can add other protocols that are filtered too
This commit is contained in:
parent
9b2757d8b0
commit
bf6b873d7c
1 changed files with 5 additions and 0 deletions
|
|
@ -58,6 +58,11 @@ Rails::Initializer.run do |config|
|
|||
# (enables use of different database adapters for development and test environments)
|
||||
config.active_record.schema_format = :ruby
|
||||
|
||||
# allow other protocols in urls for sanitzer. Add to your liking, for example
|
||||
# config.action_view.sanitized_allowed_protocols = 'onenote', 'blah', 'proto'
|
||||
# to enable "link":onenote://... or "link":blah://... hyperlinks
|
||||
config.action_view.sanitized_allowed_protocols = 'onenote'
|
||||
|
||||
# See Rails::Configuration for more options
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue