ShellQuoteArguments: Fix quoting
This accidentally used two quotes to start/end each quoted string. Upstream-commit: a7e876e3571965de64615d2012e63fae9c3ebbf8 Component: engine
This commit is contained in:
committed by
Tianon Gravi
parent
17aec56f2a
commit
c5a71d7b11
@ -1029,7 +1029,7 @@ func quote(word string, buf *bytes.Buffer) {
|
||||
return
|
||||
}
|
||||
|
||||
buf.WriteString("''")
|
||||
buf.WriteString("'")
|
||||
|
||||
for i := 0; i < len(word); i++ {
|
||||
b := word[i]
|
||||
@ -1041,7 +1041,7 @@ func quote(word string, buf *bytes.Buffer) {
|
||||
}
|
||||
}
|
||||
|
||||
buf.WriteString("''")
|
||||
buf.WriteString("'")
|
||||
}
|
||||
|
||||
func ShellQuoteArguments(args []string) string {
|
||||
|
||||
Reference in New Issue
Block a user