diff --git a/modules/base/markdown.go b/modules/base/markdown.go index a3d3a7ca8..6c6475d1a 100644 --- a/modules/base/markdown.go +++ b/modules/base/markdown.go @@ -29,7 +29,7 @@ func isalnum(c byte) bool { return (c >= '0' && c <= '9') || isletter(c) } -var validLinks = [][]byte{[]byte("http://"), []byte("https://"), []byte("ftp://"), []byte("mailto://")} +var validLinks = [][]byte{[]byte("http://"), []byte("https://"), []byte("ftp://"), []byte("mailto://"), []byte("ssh://"), []byte("ts3server://"), []byte("git://"), []byte("irc://"), []byte("ircs://")} func isLink(link []byte) bool { for _, prefix := range validLinks {