Skip to content

Commit 645c0d8

Browse files
6543zeripath
andauthored
another clusterfuzz spotted issue (#15032) (#15034)
Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent 8c461eb commit 645c0d8

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
@@ -298,7 +298,7 @@ func RenderEmoji(
298298
return ctx.postProcess(rawHTML)
299299
}
300300

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

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

0 commit comments

Comments
 (0)