summaryrefslogtreecommitdiff
path: root/vendor/github.com/microcosm-cc/bluemonday/sanitize.go
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/sanitize.go
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/sanitize.go')
-rw-r--r--vendor/github.com/microcosm-cc/bluemonday/sanitize.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/microcosm-cc/bluemonday/sanitize.go b/vendor/github.com/microcosm-cc/bluemonday/sanitize.go
index 2792fb33b..1f8d85526 100644
--- a/vendor/github.com/microcosm-cc/bluemonday/sanitize.go
+++ b/vendor/github.com/microcosm-cc/bluemonday/sanitize.go
@@ -998,7 +998,7 @@ func linkable(elementName string) bool {
// stringInSlice returns true if needle exists in haystack
func stringInSlice(needle string, haystack []string) bool {
for _, straw := range haystack {
- if strings.ToLower(straw) == strings.ToLower(needle) {
+ if strings.EqualFold(straw, needle) {
return true
}
}