From 95f986b60d13db29383600ba16560b74846452ab Mon Sep 17 00:00:00 2001 From: Ke Chen Date: Fri, 29 Mar 2024 22:30:22 +0800 Subject: [PATCH] fix: checkValidUrl --- utils/sensitive/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/sensitive/utils.go b/utils/sensitive/utils.go index 0851c18..1bb24a1 100644 --- a/utils/sensitive/utils.go +++ b/utils/sensitive/utils.go @@ -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