mirror of
https://github.com/rclone/rclone.git
synced 2024-11-24 17:34:57 +01:00
s3: fix potentially unsafe quoting issue
This commit is contained in:
parent
4804f1f1e9
commit
a87d8967fc
@ -3215,7 +3215,7 @@ func setEndpointValueForIDriveE2(m configmap.Mapper) (err error) {
|
||||
// API to get user region endpoint against the Access Key details: https://www.idrive.com/e2/guides/get_region_endpoint
|
||||
resp, err := client.Post("https://api.idrivee2.com/api/service/get_region_end_point",
|
||||
"application/json",
|
||||
strings.NewReader(`{"access_key": "`+value+`"}`))
|
||||
strings.NewReader(`{"access_key": `+strconv.Quote(value)+`}`))
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user