aboutsummaryrefslogtreecommitdiffstats
path: root/modules/base/tool.go
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-01-14 07:20:03 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-01-27 02:02:03 +0100
commit3a9fd81f5946cbd70390b9c061bdcd1842f29735 (patch)
tree84379248c2c02d766d83f79cd260a10a9393101f /modules/base/tool.go
parentab0ba4bbae121c9ba3cf0d49efc1c90ef7bb3ddc (diff)
downloadgitea-3a9fd81f5946cbd70390b9c061bdcd1842f29735.tar.gz
gitea-3a9fd81f5946cbd70390b9c061bdcd1842f29735.zip
Custom URL-Schemas for Markdown
Diffstat (limited to 'modules/base/tool.go')
-rw-r--r--modules/base/tool.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index f98ae28b93..5280fef203 100644
--- a/modules/base/tool.go
+++ b/modules/base/tool.go
@@ -37,6 +37,7 @@ func BuildSanitizer() (p *bluemonday.Policy) {
p.AllowAttrs("type").Matching(regexp.MustCompile(`^checkbox$`)).OnElements("input")
p.AllowAttrs("checked", "disabled").OnElements("input")
+ p.AllowURLSchemes(setting.Markdown.CustomURLSchemes...)
return p
}