mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-30 22:08:49 +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
eb31413816
commit
ffc1c11676
1 changed files with 5 additions and 0 deletions
|
|
@ -54,6 +54,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