Skip to content

Commit

Permalink
fix(s3): treat empty sse_c_key as not set
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Becker <[email protected]>
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
2 people authored and backportbot[bot] committed Jan 29, 2025
1 parent 553e77a commit 43d4864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/ObjectStore/S3ConnectionTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ protected function getCertificateBundlePath(): ?string {
}

protected function getSSECKey(): ?string {
if (isset($this->params['sse_c_key'])) {
if (isset($this->params['sse_c_key']) && !empty($this->params['sse_c_key'])) {
return $this->params['sse_c_key'];
}

Expand Down

0 comments on commit 43d4864

Please sign in to comment.