From a87d8967fc2e90f5d7fd65683bfba30308940f09 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Thu, 15 Aug 2024 20:15:10 +0200 Subject: [PATCH] s3: fix potentially unsafe quoting issue --- backend/s3/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/s3/s3.go b/backend/s3/s3.go index 8278d4d08..e5810cfc2 100644 --- a/backend/s3/s3.go +++ b/backend/s3/s3.go @@ -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 }