Skip to content

Commit fbe3252

Browse files
kesselbbackportbot[bot]
authored andcommitted
fix(s3): make data integrity protections opt-in
Signed-off-by: Daniel Kesselberg <[email protected]> [skip ci]
1 parent d89e4d2 commit fbe3252

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/private/Files/ObjectStore/S3ConnectionTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,14 @@ public function getConnection() {
127127

128128
if (isset($this->params['request_checksum_calculation'])) {
129129
$options['request_checksum_calculation'] = $this->params['request_checksum_calculation'];
130+
} else {
131+
$options['request_checksum_calculation'] = 'when_required';
130132
}
131133

132134
if (isset($this->params['response_checksum_validation'])) {
133135
$options['response_checksum_validation'] = $this->params['response_checksum_validation'];
136+
} else {
137+
$options['response_checksum_validation'] = 'when_required';
134138
}
135139

136140
if ($this->getProxy()) {

0 commit comments

Comments
 (0)