From 8391d11d491b5cd0d6f436395091ab738e429e0a Mon Sep 17 00:00:00 2001 From: Cyrille Date: Thu, 9 May 2019 08:30:54 +0100 Subject: [PATCH] Fix Generic Object Injection Sink --- clean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clean.js b/clean.js index e1a94ae..11f6337 100644 --- a/clean.js +++ b/clean.js @@ -30,7 +30,7 @@ s3.listObjects({ Bucket: bucketName }).promise().then((data) => { for (let i = 0; i < data.Contents.length; i++) { objectKeys.push({ - Key: data.Contents[i].Key + Key: data.Contents[parseInt(i)].Key }); }