From a7ecd0804694c173ebb6ec321fd450537a4ba081 Mon Sep 17 00:00:00 2001 From: yiguous <147401898+yiguous@users.noreply.github.com> Date: Fri, 5 Jul 2024 18:34:54 +0800 Subject: [PATCH] fix escaped auth --- app/cmd/client.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/cmd/client.go b/app/cmd/client.go index 8f05c1ee7d..65bc7e0c71 100644 --- a/app/cmd/client.go +++ b/app/cmd/client.go @@ -393,7 +393,11 @@ func (c *clientConfig) parseURI() bool { return false } if u.User != nil { - c.Auth = u.User.String() + auth, err := url.QueryUnescape(u.User.String()) + if err != nil { + return false + } + c.Auth = auth } c.Server = u.Host q := u.Query()