Browse Source
another clusterfuzz spotted issue (#15032)
Signed-off-by: Andrew Thornton <art27@cantab.net>
mj-v1.14.3
zeripath
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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) { |
|
|
|