summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-04-14 16:20:44 +0200
committerGitHub <noreply@github.com>2023-04-14 16:20:44 +0200
commit140c2541edffe136f0bbf1fba74b8bbbaecc7e02 (patch)
tree7c20b8ca80859429064d1124a07b1a70cfb0ca36 /apps
parentd4341a278e84f4da3cb65f399b8dc4ffcc5731ca (diff)
parentbb173e092b3c09ebe443dc02dc2cd4bd224c1b78 (diff)
downloadnextcloud-server-140c2541edffe136f0bbf1fba74b8bbbaecc7e02.tar.gz
nextcloud-server-140c2541edffe136f0bbf1fba74b8bbbaecc7e02.zip
Merge pull request #37611 from ZE3kr/patch-1
Unquote S3 ETag stored in oc_filecache
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Lib/Storage/AmazonS3.php2
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']),
];