Skip to content

Commit c0c052b

Browse files
authored
another clusterfuzz spotted issue (#15032)
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 0e95a41 commit c0c052b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/markup/html.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ func RenderEmoji(
313313
return ctx.postProcess(rawHTML)
314314
}
315315

316-
var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL][ />]))`)
316+
var tagCleaner = regexp.MustCompile(`<((?:/?\w+/\w+)|(?:/[\w ]+/)|(/?[hH][tT][mM][lL][ />])|(/?[hH][eE][aA][dD][ />]))`)
317317
var nulCleaner = strings.NewReplacer("\000", "")
318318

319319
func (ctx *postProcessCtx) postProcess(rawHTML []byte) ([]byte, error) {

0 commit comments

Comments
 (0)