allow ftp and irc protocol links in wiki pages
This commit is contained in:
@@ -43,7 +43,7 @@ module Gollum
|
|||||||
|
|
||||||
# Default whitelisted protocols for URLs.
|
# Default whitelisted protocols for URLs.
|
||||||
PROTOCOLS = {
|
PROTOCOLS = {
|
||||||
'a' => {'href' => ['http', 'https', 'mailto', :relative]},
|
'a' => {'href' => ['http', 'https', 'mailto', 'ftp', 'irc', :relative]},
|
||||||
'img' => {'src' => ['http', 'https', :relative]}
|
'img' => {'src' => ['http', 'https', :relative]}
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user