diff options
author | Robin Appelman <robin@icewind.nl> | 2023-07-20 19:32:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 19:32:03 +0200 |
commit | 31f1ff87d0537e5d839b8c01f4ca72d2feddb739 (patch) | |
tree | 0a1e7e02c04ccedbc327ee32729c8cc7baf96587 /lib/private/Files | |
parent | 70a9d66aa8117f1426ad40642be7eb6a92707082 (diff) | |
parent | b0e663fa2842e61414b315d5ebc34cfe595168ec (diff) | |
download | nextcloud-server-31f1ff87d0537e5d839b8c01f4ca72d2feddb739.tar.gz nextcloud-server-31f1ff87d0537e5d839b8c01f4ca72d2feddb739.zip |
Merge pull request #39367 from nextcloud/s3-fopen-exception
handle more exceptions in AmazonS3::fopen
Diffstat (limited to 'lib/private/Files')
-rw-r--r-- | lib/private/Files/Stream/SeekableHttpStream.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Stream/SeekableHttpStream.php b/lib/private/Files/Stream/SeekableHttpStream.php index 51ccaeba998..66f94768e62 100644 --- a/lib/private/Files/Stream/SeekableHttpStream.php +++ b/lib/private/Files/Stream/SeekableHttpStream.php @@ -219,7 +219,9 @@ class SeekableHttpStream implements File { public function stream_stat() { if ($this->getCurrent()) { $stat = fstat($this->getCurrent()); - $stat['size'] = $this->totalSize; + if ($stat) { + $stat['size'] = $this->totalSize; + } return $stat; } else { return false; |