We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b21b93a commit 295c5d1Copy full SHA for 295c5d1
auth/oauth.go
@@ -11,6 +11,7 @@ import (
11
"os"
12
"os/exec"
13
"runtime"
14
+ "strings"
15
)
16
17
func randomString(length int) (string, error) {
@@ -101,11 +102,14 @@ func openInBrowser(url string) error {
101
102
args = []string{"open"}
103
case "windows":
104
args = []string{"cmd", "/c", "start"}
105
+ r := strings.NewReplacer("&", "^&")
106
+ url = r.Replace(url)
107
default:
108
args = []string{"xdg-open"}
109
}
110
111
args = append(args, url)
112
cmd := exec.Command(args[0], args[1:]...)
113
+ cmd.Stderr = os.Stderr
114
return cmd.Run()
115
0 commit comments