lib/aws_recon/collectors/s3.rb in aws_recon-0.2.18 vs lib/aws_recon/collectors/s3.rb in aws_recon-0.2.19
- old
+ new
@@ -53,10 +53,10 @@
op = OpenStruct.new(operation)
resp = client.send(op.func, { bucket: bucket.name })
struct[op.key] = if op.key == 'policy'
- JSON.parse(CGI.unescape(resp.policy.string))
+ resp.policy.string.parse_policy
else
op.field ? resp.send(op.field).to_h : resp.to_h
end
rescue Aws::S3::Errors::ServiceError => e