From 0d6eb32cfd340c5df5b261f5c7706af619f16b1e Mon Sep 17 00:00:00 2001 From: pingc0y <1098971850@qq.com> Date: Tue, 21 Feb 2023 11:50:02 +0800 Subject: [PATCH] =?UTF-8?q?2023/2/21=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- result/result.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/result/result.go b/result/result.go index 81a1197..e72e684 100644 --- a/result/result.go +++ b/result/result.go @@ -524,7 +524,10 @@ func Print() { } for _, u := range ResultUrlHost { - u.Url, _ = url.QueryUnescape(u.Url) + urlx, err := url.QueryUnescape(u.Url) + if err == nil { + u.Url = urlx + } if cmd.S != "" && len(u.Title) != 0 { if u.Status == "疑似危险路由" { fmt.Printf(color.LightBlue.Sprintf("%-"+ulen+"s", u.Url) + color.LightGreen.Sprintf(" [ %s ]\n", u.Status)) @@ -551,6 +554,10 @@ func Print() { fmt.Println("\n" + strconv.Itoa(len(ResultUrlOther)) + " URL to Other") } for _, u := range ResultUrlOther { + urlx, err := url.QueryUnescape(u.Url) + if err == nil { + u.Url = urlx + } if cmd.S != "" && len(u.Title) != 0 { if u.Status == "疑似危险路由" { fmt.Printf(color.LightBlue.Sprintf("%-"+ulen+"s", u.Url) + color.LightGreen.Sprintf(" [ %s ]\n", u.Status))