From 6dcb0f4b2bddc583212995397d6c6e1ec14adc58 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 13 Feb 2017 09:55:24 +0100 Subject: fix urls: Escape values in URLs For usernames and passwords containing special characters the URL parameters must be escaped. Because the entire URI is just query parameters I've opted for using net/url.Values for the entire URI. Fixes #1 --- main.go | 1 + 1 file changed, 1 insertion(+) (limited to 'main.go') diff --git a/main.go b/main.go index fd74e8b457fe..a7ab65d3d196 100644 --- a/main.go +++ b/main.go @@ -62,6 +62,7 @@ func readCredentials() (string, string, error) { fmt.Printf("Password: ") password, err := terminal.ReadPassword(syscall.Stdin) + fmt.Println() // If an error occured, I don't care about which one it is. return strings.TrimSpace(username), strings.TrimSpace(string(password)), err -- cgit 1.4.1