diff --git a/internal/piwigo/helper.go b/internal/piwigo/helper.go index 41aed35..83fad19 100644 --- a/internal/piwigo/helper.go +++ b/internal/piwigo/helper.go @@ -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 }