mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-25 10:12:37 +02:00
escape quote on parameters
This commit is contained in:
parent
91c2e5b85a
commit
a3bdfe66c1
@ -34,7 +34,7 @@ func ArgsToForm(args []string) (*url.Values, error) {
|
||||
if len(r) != 2 {
|
||||
return nil, errors.New("args should be key=value")
|
||||
}
|
||||
params.Add(r[0], r[1])
|
||||
params.Add(r[0], strings.ReplaceAll(r[1], "'", `\'`))
|
||||
}
|
||||
return params, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user