diff options
author | Robin Appelman <robin@icewind.nl> | 2024-04-03 13:33:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 13:33:32 +0200 |
commit | f85ce2d80309bc889544bcbfcace17aa67d5b44b (patch) | |
tree | 8bcbdc032a979413d7f8a9f80439026b93f208ae | |
parent | 7b445897c4d15adc165a033d50e168b18b8cc660 (diff) | |
parent | e5f373c2721e16c2fdd8da2a2d25968174735434 (diff) | |
download | nextcloud-server-f85ce2d80309bc889544bcbfcace17aa67d5b44b.tar.gz nextcloud-server-f85ce2d80309bc889544bcbfcace17aa67d5b44b.zip |
Merge pull request #44508 from nextcloud/backport/39367/stable27
[stable27] handle more exceptions in AmazonS3::fopen
-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; |