summaryrefslogtreecommitdiffstats
path: root/modules/markup/sanitizer.go
diff options
context:
space:
mode:
authorKN4CK3R <KN4CK3R@users.noreply.github.com>2021-05-23 16:14:03 +0200
committerGitHub <noreply@github.com>2021-05-23 17:14:03 +0300
commit6021fbfe7a4e73c209eeea514a929fcb5598d63e (patch)
tree0058ceeaa2df9d20655aae7ad78c82f3e0f7623e /modules/markup/sanitizer.go
parentb4d10598c9be1ba8008c5a47ef1cd3612e99331a (diff)
downloadgitea-6021fbfe7a4e73c209eeea514a929fcb5598d63e.tar.gz
gitea-6021fbfe7a4e73c209eeea514a929fcb5598d63e.zip
Make tasklist checkboxes clickable (#15791)
Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/markup/sanitizer.go')
-rw-r--r--modules/markup/sanitizer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/sanitizer.go b/modules/markup/sanitizer.go
index 9f336d8330..0e05ddb085 100644
--- a/modules/markup/sanitizer.go
+++ b/modules/markup/sanitizer.go
@@ -43,7 +43,7 @@ func ReplaceSanitizer() {
// Checkboxes
sanitizer.policy.AllowAttrs("type").Matching(regexp.MustCompile(`^checkbox$`)).OnElements("input")
- sanitizer.policy.AllowAttrs("checked", "disabled").OnElements("input")
+ sanitizer.policy.AllowAttrs("checked", "disabled", "data-source-position").OnElements("input")
// Custom URL-Schemes
if len(setting.Markdown.CustomURLSchemes) > 0 {