From bf6b873d7c6d22587698f741fdc9080948161c2e 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 83765086..b7f520fe 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -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