aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author65432021-03-18 23:21:33 +0100
committerGitHub2021-03-19 00:21:33 +0200
commit645c0d8abd530e2725b6c6db0d3f3e28c807a829 (patch)
treee3b95a0d740c208691f64fb77de86e3efde0676f
parent8c461eb261c060811859600c37ad980a7189bd2d (diff)
another clusterfuzz spotted issue (#15032) (#15034)
Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
-rw-r--r--modules/markup/html.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/markup/html.go b/modules/markup/html.go
index a81b03f07..c2e574e3b 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -298,7 +298,7 @@ func RenderEmoji(
return ctx.postProcess(rawHTML)
}
-var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL][ />]))`)
+var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL][ />])|(/?[hH][eE][aA][dD][ />]))`)
var nulCleaner = strings.NewReplacer("\000", "")
func (ctx *postProcessCtx) postProcess(rawHTML []byte) ([]byte, error) {