summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-03-18 21:37:11 +0000
committerGitHub <noreply@github.com>2021-03-18 22:37:11 +0100
commitc0c052bdbbb03319e63e9a3fc686e4bc3401e926 (patch)
tree7ad17bc8b7f33932af9a29d66ef52a7c9d0c9870 /modules
parent0e95a41ccdb6a0f921d853455f026a2f73475f52 (diff)
downloadgitea-c0c052bdbbb03319e63e9a3fc686e4bc3401e926.tar.gz
gitea-c0c052bdbbb03319e63e9a3fc686e4bc3401e926.zip
another clusterfuzz spotted issue (#15032)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules')
-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 96692752a1..a7d66cc249 100644
--- a/modules/markup/html.go
+++ b/modules/markup/html.go
@@ -313,7 +313,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) {