mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-07 22:49:31 -06:00
[chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.26 to 1.0.27 (#3081)
This commit is contained in:
parent
a81455e81c
commit
5769722c58
19 changed files with 57 additions and 204 deletions
11
vendor/github.com/microcosm-cc/bluemonday/sanitize.go
generated
vendored
11
vendor/github.com/microcosm-cc/bluemonday/sanitize.go
generated
vendored
|
|
@ -529,9 +529,11 @@ attrsLoop:
|
|||
if ap.regexp != nil {
|
||||
if ap.regexp.MatchString(htmlAttr.Val) {
|
||||
cleanAttrs = append(cleanAttrs, htmlAttr)
|
||||
continue attrsLoop
|
||||
}
|
||||
} else {
|
||||
cleanAttrs = append(cleanAttrs, htmlAttr)
|
||||
continue attrsLoop
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -762,10 +764,10 @@ attrsLoop:
|
|||
switch elementName {
|
||||
case "audio", "img", "link", "script", "video":
|
||||
var crossOriginFound bool
|
||||
for _, htmlAttr := range cleanAttrs {
|
||||
for i, htmlAttr := range cleanAttrs {
|
||||
if htmlAttr.Key == "crossorigin" {
|
||||
crossOriginFound = true
|
||||
htmlAttr.Val = "anonymous"
|
||||
cleanAttrs[i].Val = "anonymous"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1087,3 +1089,8 @@ func normaliseElementName(str string) string {
|
|||
`"`,
|
||||
)
|
||||
}
|
||||
|
||||
type stringWriterWriter interface {
|
||||
io.Writer
|
||||
io.StringWriter
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue