Skip to content

Commit fabfa26

Browse files
committedOct 21, 2022
Read in base64 encoded keys
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 52b0eee commit fabfa26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎lib/private/Files/ObjectStore/S3ConnectionTrait.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,11 @@ protected function getSSECParameters(): array {
243243
return [];
244244
}
245245

246+
$rawKey = base64_decode($key);
246247
return [
247248
'SSECustomerAlgorithm' => 'AES256',
248-
'SSECustomerKey' => $key,
249-
'SSECustomerKeyMD5' => md5($key, true)
249+
'SSECustomerKey' => $rawKey,
250+
'SSECustomerKeyMD5' => md5($rawKey, true)
250251
];
251252
}
252253
}

0 commit comments

Comments
 (0)