We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36b68b2 commit 17af21eCopy full SHA for 17af21e
url.go
@@ -3,9 +3,10 @@ package getter
3
import "net/url"
4
5
// RedactURL is a port of url.Redacted from the standard library,
6
-// which is like url.String but replaces any password with "xxxxx".
+// which is like url.String but replaces any password with "redacted".
7
// Only the password in u.URL is redacted. This allows the library
8
// to maintain compatibility with go1.14.
9
+// This port was also extended to redact SSH key from URL query parameter.
10
func RedactURL(u *url.URL) string {
11
if u == nil {
12
return ""
0 commit comments