Browse Source

Whitelist dat/ipfs/gopher links in sanitizer (#8034)

Fix #7994
Eugen Rochko 5 years ago
parent
commit
8f64b17d98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/lib/sanitize_config.rb

+ 1 - 1
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]