Skip to content

Commit

Permalink
fix: checkValidUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
JingYiJun committed Mar 29, 2024
1 parent 390ef6f commit 95f986b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/sensitive/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func checkValidUrl(input string) (bool, error) {
if err != nil {
return false, err
}
if slices.Contains(config.Config.ValidImageUrl, url.Hostname()) {
if !slices.Contains(config.Config.ValidImageUrl, url.Hostname()) {
return false, nil
}
return true, nil
Expand Down

0 comments on commit 95f986b

Please sign in to comment.