diff options
| author | 2023-07-24 10:24:03 +0000 | |
|---|---|---|
| committer | 2023-07-24 10:24:03 +0000 | |
| commit | 81fe59dadcc1351ee4a2f23b29cc889e288613da (patch) | |
| tree | a4ee6e0bbcb4d0074f86acd0111c2999bfc81204 /vendor/github.com/microcosm-cc/bluemonday/helpers.go | |
| parent | [chore]: Bump github.com/yuin/goldmark from 1.5.4 to 1.5.5 (#2023) (diff) | |
| download | gotosocial-81fe59dadcc1351ee4a2f23b29cc889e288613da.tar.xz | |
[chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.24 to 1.0.25 (#2021)
Diffstat (limited to 'vendor/github.com/microcosm-cc/bluemonday/helpers.go')
| -rw-r--r-- | vendor/github.com/microcosm-cc/bluemonday/helpers.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vendor/github.com/microcosm-cc/bluemonday/helpers.go b/vendor/github.com/microcosm-cc/bluemonday/helpers.go index 2b03d7e7d..aa0b7b92d 100644 --- a/vendor/github.com/microcosm-cc/bluemonday/helpers.go +++ b/vendor/github.com/microcosm-cc/bluemonday/helpers.go @@ -222,11 +222,7 @@ func (p *Policy) AllowDataURIImages() { } _, err := base64.StdEncoding.DecodeString(url.Opaque[len(matched):]) - if err != nil { - return false - } - - return true + return err == nil }, ) } |
