about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-07-16 15:17:43 +0200
committerYamagishi Kazutoshi <ykzts@desire.sh>2018-07-16 22:17:43 +0900
commit8f64b17d98612f853a83ee766edc2bb41c82fd75 (patch)
treed5257c3b52044ad2b8682f9b36c3f468613ca9d3
parentdaacf15d72e284eef9172a15bd2629a5b6514f32 (diff)
Whitelist dat/ipfs/gopher links in sanitizer (#8034)
Fix #7994
-rw-r--r--app/lib/sanitize_config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb
index c2b466924..1bba4a5a6 100644
--- a/app/lib/sanitize_config.rb
+++ b/app/lib/sanitize_config.rb
@@ -2,7 +2,7 @@
 
 class Sanitize
   module Config
-    HTTP_PROTOCOLS ||= ['http', 'https', :relative].freeze
+    HTTP_PROTOCOLS ||= ['http', 'https', 'dat', 'dweb', 'ipfs', 'ipns', 'ssb', 'gopher', :relative].freeze
 
     CLASS_WHITELIST_TRANSFORMER = lambda do |env|
       node = env[:node]