Skip to content

Commit 9302be2

Browse files
committed
Merge pull request cli#4 from shibukawa/master
Fix Windows code to allow multiple GET parameters
2 parents 5a9dc85 + c13e002 commit 9302be2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

browser_windows.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
package browser
22

3+
import (
4+
"strings"
5+
)
6+
37
func openBrowser(url string) error {
4-
return runCmd("cmd", "/c", "start", url)
8+
r := strings.NewReplacer("&", "^&")
9+
return runCmd("cmd", "/c", "start", r.Replace(url))
510
}

0 commit comments

Comments
 (0)