aboutsummaryrefslogtreecommitdiff
path: root/pkg/markup/sanitizer.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/markup/sanitizer.go')
-rw-r--r--pkg/markup/sanitizer.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/markup/sanitizer.go b/pkg/markup/sanitizer.go
index 371f5b3f..3f1e41b7 100644
--- a/pkg/markup/sanitizer.go
+++ b/pkg/markup/sanitizer.go
@@ -36,6 +36,9 @@ func NewSanitizer() {
sanitizer.policy.AllowAttrs("type").Matching(regexp.MustCompile(`^checkbox$`)).OnElements("input")
sanitizer.policy.AllowAttrs("checked", "disabled").OnElements("input")
+ // Data URLs
+ sanitizer.policy.AllowURLSchemes("data")
+
// Custom URL-Schemes
sanitizer.policy.AllowURLSchemes(setting.Markdown.CustomURLSchemes...)
})