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

Fix #7994
This commit is contained in:
Eugen Rochko 2018-07-16 15:17:43 +02:00 committed by Yamagishi Kazutoshi
parent d1d46f914b
commit b751ec1c2e

View file

@ -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]