re-adding call to cleaninput() so ampersands work in urls.

running `go fmt`
This commit is contained in:
skratchdot 2015-02-21 09:02:34 -05:00
parent 6c04014953
commit e43cb5678b
1 changed files with 3 additions and 3 deletions

View File

@ -10,8 +10,8 @@ import (
)
var (
cmd = "url.dll,FileProtocolHandler"
runDll32 = filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "rundll32.exe")
cmd = "url.dll,FileProtocolHandler"
runDll32 = filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "rundll32.exe")
)
func cleaninput(input string) string {
@ -20,7 +20,7 @@ func cleaninput(input string) string {
}
func open(input string) *exec.Cmd {
return exec.Command(runDll32, cmd, input)
return exec.Command(runDll32, cmd, cleaninput(input))
}
func openWith(input string, appName string) *exec.Cmd {