Skip to content

Commit

Permalink
Merge pull request #1144 from yiguous/patch-1
Browse files Browse the repository at this point in the history
fix escaped auth
  • Loading branch information
tobyxdd committed Jul 10, 2024
2 parents 458ee13 + a7ecd08 commit b563f39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/cmd/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit b563f39

Please sign in to comment.