Skip to content

Commit 8d4f8eb

Browse files
authored
Clusterfuzz found another way (#15160) (#15169)
Backport #15160 Clusterfuzz found another way so I found another way to stop it Signed-off-by: Andrew Thornton <[email protected]>
1 parent 4f47bf5 commit 8d4f8eb

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

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

0 commit comments

Comments
 (0)