diff options
author | James Guo <i@ze3kr.com> | 2023-04-06 14:34:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 14:34:08 +0800 |
commit | bb173e092b3c09ebe443dc02dc2cd4bd224c1b78 (patch) | |
tree | 0b43ec95c050794adfecff46a7129d2f98d2ed01 /apps | |
parent | 2cfb9e94970e9437ae30481bec471f1ac802e45a (diff) | |
download | nextcloud-server-bb173e092b3c09ebe443dc02dc2cd4bd224c1b78.tar.gz nextcloud-server-bb173e092b3c09ebe443dc02dc2cd4bd224c1b78.zip |
Update AmazonS3.php
Signed-off-by: James Guo <i@ze3kr.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/AmazonS3.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 6845d1f69c2..5b92c9a4105 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -724,7 +724,7 @@ class AmazonS3 extends \OC\Files\Storage\Common { 'mimetype' => $this->mimeDetector->detectPath($object['Key']), 'mtime' => strtotime($object['LastModified']), 'storage_mtime' => strtotime($object['LastModified']), - 'etag' => $object['ETag'], + 'etag' => trim($object['ETag'], '"'), 'permissions' => Constants::PERMISSION_ALL - Constants::PERMISSION_CREATE, 'size' => (int)($object['Size'] ?? $object['ContentLength']), ]; |