summaryrefslogtreecommitdiff
path: root/vendor/github.com/microcosm-cc/bluemonday/css
diff options
context:
space:
mode:
authorLibravatar dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2023-10-16 09:02:31 +0000
committerLibravatar GitHub <noreply@github.com>2023-10-16 09:02:31 +0000
commit48725f722883d303dbdc9e077c598c07e8565f41 (patch)
treeaf1320b7c61b7a5d9ab1bacd3a24796a306914c4 /vendor/github.com/microcosm-cc/bluemonday/css
parent[chore]: Bump golang.org/x/net from 0.16.0 to 0.17.0 (#2262) (diff)
downloadgotosocial-48725f722883d303dbdc9e077c598c07e8565f41.tar.xz
[chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.25 to 1.0.26 (#2266)
Diffstat (limited to 'vendor/github.com/microcosm-cc/bluemonday/css')
-rw-r--r--vendor/github.com/microcosm-cc/bluemonday/css/handlers.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go b/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
index e0429cf25..f8b8b61af 100644
--- a/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
+++ b/vendor/github.com/microcosm-cc/bluemonday/css/handlers.go
@@ -366,10 +366,11 @@ func in(value []string, arr []string) bool {
func splitValues(value string) []string {
values := strings.Split(value, ",")
+ newValues := []string{}
for _, strippedValue := range values {
- strippedValue = strings.ToLower(strings.TrimSpace(strippedValue))
+ newValues = append(newValues, strings.ToLower(strings.TrimSpace(strippedValue)))
}
- return values
+ return newValues
}
func GetDefaultHandler(attr string) func(string) bool {