This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Whitelist dat/ipfs/gopher links in sanitizer (
#8034
)
Fix
#7994
master
Eugen Rochko
6 years ago
committed by
Yamagishi Kazutoshi
parent
daacf15d72
commit
8f64b17d98
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/lib/sanitize_config.rb
+ 1
- 1
app/lib/sanitize_config.rb
View File
@ -2,7 +2,7 @@
class
Sanitize
class
Sanitize
module
Config
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
|
CLASS_WHITELIST_TRANSFORMER
=
lambda
do
|
env
|
node
=
env
[
:node
]
node
=
env
[
:node
]
Write
Preview
Loading…
Cancel
Save