From ffc1c1167644294fe02a9b276d802fde9eb493f6 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Tue, 4 Aug 2009 13:09:08 +0200 Subject: [PATCH] allows onenote urls as links in notes field. Fixes #901. One can add other protocols that are filtered too --- config/environment.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environment.rb b/config/environment.rb index 8a8c0af9..d36546dd 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -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