From 832026cddb55d341a025427b3d5edf770a2d71ec Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 20 Dec 2020 15:32:44 +0100 Subject: Rename `escapeBrowserCommand()` to `shellEscapeCommand()` Didn't like `escapeBrowserCommand()` either, since we're escaping the URL not the rest of the command. --- browserenv.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'browserenv.go') diff --git a/browserenv.go b/browserenv.go index 678b651..ae1024f 100644 --- a/browserenv.go +++ b/browserenv.go @@ -82,7 +82,7 @@ func browserCommand(command, url string) *exec.Cmd { if browserCommandIncludesURL(command) { command = fmtWithURL(command, url) } else { - command = escapeBrowserCommand(command, url) + command = shellEscapeCommand(command, url) } args = append(args, command) -- cgit v1.2.3